Execution
Date
09 Dec 2024 12:54:55 +0000
Duration
00:00:09.96
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.11
ara
1.7.2 / 1.7.2
Python
3.10.10
Summary
16
Hosts
1
Tasks
16
Results
1
Plays
1
Files
0
Records
Task result details
-
StatusFAILED
-
Duration00:00:05.37
-
PlayPlaybook to switch agent360 to root
-
TaskRun commands
-
Date09 Dec 2024 12:55:02 +0000
-
Module / Actionansible.builtin.shell (/home/ssh-gateway/ansible/kuly/switch_agent360_to_root.yaml:6)
| Field | Value |
|---|---|
| changed |
False |
| cmd |
set -o pipefail rm -f /etc/sudoers.d/agent360 rm -f /tmp/*sum* mkdir /etc/systemd/system/agent360.service.d/ echo -e "[Service]\nUser=root" > /etc/systemd/system/agent360.service.d/override.conf systemctl daemon-reload systemctl restart agent360.service curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s apache_errors curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s fpm_errors curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s provider_metrics |
| delta |
0:00:03.603949 |
| end |
2024-12-09 06:55:02.152809 |
| invocation |
{ "module_args": { "_raw_params": "set -o pipefail\nrm -f /etc/sudoers.d/agent360\nrm -f /tmp/*sum*\nmkdir /etc/systemd/system/agent360.service.d/\necho -e \"[Service]\\nUser=root\" > /etc/systemd/system/agent360.service.d/override.conf\nsystemctl daemon-reload\nsystemctl restart agent360.service\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s apache_errors\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s fpm_errors\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s provider_metrics\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "expand_argument_vars": true, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
| msg |
non-zero return code |
| rc |
5 |
| start |
2024-12-09 06:54:58.548860 |
| stderr |
Failed to restart agent360.service: Unit agent360.service not found.
bash: line 8: agent360: command not found
grep: /etc/agent360.ini: No such file or directory
grep: /etc/agent360-custom.ini: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 777 100 777 0 0 2607 0 --:--:-- --:--:-- --:--:-- 2598
100 777 100 777 0 0 2607 0 --:--:-- --:--:-- --:--:-- 2598
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file
Warning: /usr/local/lib//site-packages/agent360/plugins/apache_errors.py: No
Warning: such file or directory
100 1973 100 1973 0 0 6733 0 --:--:-- --:--:-- --:--:-- 6733
curl: (23) Failed writing body (0 != 1973)
Failed to restart agent360.service: Unit agent360.service not found.
bash: line 27: /usr/local/bin/agent360: No such file or directory
Redirecting to /bin/systemctl restart agent360.service
Failed to restart agent360.service: Unit agent360.service not found.
bash: line 8: agent360: command not found
grep: /etc/agent360.ini: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 81 100 81 0 0 277 0 --:--:-- --:--:-- --:--:-- 276
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file
Warning: /usr/local/lib//site-packages/agent360/plugins/fpm_errors.py: No such
Warning: file or directory
100 3111 100 3111 0 0 10233 0 --:--:-- --:--:-- --:--:-- 10233
curl: (23) Failed writing body (0 != 3111)
Failed to restart agent360.service: Unit agent360.service not found.
bash: line 27: /usr/local/bin/agent360: No such file or directory
Redirecting to /bin/systemctl restart agent360.service
Failed to restart agent360.service: Unit agent360.service not found.
bash: line 8: agent360: command not found
grep: /etc/agent360.ini: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 73 100 73 0 0 231 0 --:--:-- --:--:-- --:--:-- 231
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file
Warning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py:
Warning: No such file or directory
100 10685 100 10685 0 0 33390 0 --:--:-- --:--:-- --:--:-- 33390
curl: (23) Failed writing body (0 != 10685)
Failed to restart agent360.service: Unit agent360.service not found.
bash: line 27: /usr/local/bin/agent360: No such file or directory
Redirecting to /bin/systemctl restart agent360.service
Failed to restart agent360.service: Unit agent360.service not found.
|
| stderr_lines |
[ "Failed to restart agent360.service: Unit agent360.service not found.", "bash: line 8: agent360: command not found", "grep: /etc/agent360.ini: No such file or directory", "grep: /etc/agent360-custom.ini: No such file or directory", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", "100 777 100 777 0 0 2607 0 --:--:-- --:--:-- --:--:-- 2598", "100 777 100 777 0 0 2607 0 --:--:-- --:--:-- --:--:-- 2598", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file ", "Warning: /usr/local/lib//site-packages/agent360/plugins/apache_errors.py: No ", "Warning: such file or directory", "", "100 1973 100 1973 0 0 6733 0 --:--:-- --:--:-- --:--:-- 6733", "curl: (23) Failed writing body (0 != 1973)", "Failed to restart agent360.service: Unit agent360.service not found.", "bash: line 27: /usr/local/bin/agent360: No such file or directory", "Redirecting to /bin/systemctl restart agent360.service", "Failed to restart agent360.service: Unit agent360.service not found.", "bash: line 8: agent360: command not found", "grep: /etc/agent360.ini: No such file or directory", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", "100 81 100 81 0 0 277 0 --:--:-- --:--:-- --:--:-- 276", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file ", "Warning: /usr/local/lib//site-packages/agent360/plugins/fpm_errors.py: No such ", "Warning: file or directory", "", "100 3111 100 3111 0 0 10233 0 --:--:-- --:--:-- --:--:-- 10233", "curl: (23) Failed writing body (0 != 3111)", "Failed to restart agent360.service: Unit agent360.service not found.", "bash: line 27: /usr/local/bin/agent360: No such file or directory", "Redirecting to /bin/systemctl restart agent360.service", "Failed to restart agent360.service: Unit agent360.service not found.", "bash: line 8: agent360: command not found", "grep: /etc/agent360.ini: No such file or directory", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", "100 73 100 73 0 0 231 0 --:--:-- --:--:-- --:--:-- 231", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file ", "Warning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py: ", "Warning: No such file or directory", "", "100 10685 100 10685 0 0 33390 0 --:--:-- --:--:-- --:--:-- 33390", "curl: (23) Failed writing body (0 != 10685)", "Failed to restart agent360.service: Unit agent360.service not found.", "bash: line 27: /usr/local/bin/agent360: No such file or directory", "Redirecting to /bin/systemctl restart agent360.service", "Failed to restart agent360.service: Unit agent360.service not found." ] |
| stdout |
Adding conf, so this is an install Adding conf, so this is an install Adding conf, so this is an install |
| stdout_lines |
[ "Adding conf, so this is an install", "Adding conf, so this is an install", "Adding conf, so this is an install" ] |