Execution
Date
09 Dec 2024 15:42:34 +0000
Duration
00:05:09.69
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
233
Hosts
1
Tasks
233
Results
1
Plays
1
Files
0
Records
Task result details
-
StatusOK
-
Duration00:01:14.09
-
PlayPlaybook to switch agent360 to root
-
TaskRun commands
-
Date09 Dec 2024 15:44:10 +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:08.201589 |
| end |
2024-12-09 15:43:05.205790 |
| 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 |
|
| rc |
0 |
| start |
2024-12-09 15:42:57.004201 |
| stderr |
% 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 45705 0 --:--:-- --:--:-- --:--:-- 45705
% 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 1973 100 1973 0 0 107k 0 --:--:-- --:--:-- --:--:-- 107k
Redirecting to /bin/systemctl restart agent360.service
% 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 81 100 81 0 0 3857 0 --:--:-- --:--:-- --:--:-- 3857
% 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 3111 100 3111 0 0 132k 0 --:--:-- --:--:-- --:--:-- 132k
Redirecting to /bin/systemctl restart agent360.service
% 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 10685 100 10685 0 0 372k 0 --:--:-- --:--:-- --:--:-- 372k
Redirecting to /bin/systemctl status kcare.service
# Warning: iptables-legacy tables present, use iptables-legacy to see them
# Warning: iptables-legacy tables present, use iptables-legacy to see them
# Warning: iptables-legacy tables present, use iptables-legacy to see them
# Warning: iptables-legacy tables present, use iptables-legacy to see them
Redirecting to /bin/systemctl restart agent360.service
|
| stderr_lines |
[ " % 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 45705 0 --:--:-- --:--:-- --:--:-- 45705", " % 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 1973 100 1973 0 0 107k 0 --:--:-- --:--:-- --:--:-- 107k", "Redirecting to /bin/systemctl restart agent360.service", " % 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 81 100 81 0 0 3857 0 --:--:-- --:--:-- --:--:-- 3857", " % 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 3111 100 3111 0 0 132k 0 --:--:-- --:--:-- --:--:-- 132k", "Redirecting to /bin/systemctl restart agent360.service", " % 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 10685 100 10685 0 0 372k 0 --:--:-- --:--:-- --:--:-- 372k", "Redirecting to /bin/systemctl status kcare.service", "# Warning: iptables-legacy tables present, use iptables-legacy to see them", "# Warning: iptables-legacy tables present, use iptables-legacy to see them", "# Warning: iptables-legacy tables present, use iptables-legacy to see them", "# Warning: iptables-legacy tables present, use iptables-legacy to see them", "Redirecting to /bin/systemctl restart agent360.service" ] |
| stdout |
Adding conf, so this is an install
apache_errors:
{
"apache_errors": {
"Scoreboard is full, not at MaxRequestWorkers": 0,
"Scoreboard is full, note at MaxRequestWorkers.Increase ServerLimit": 0,
"Server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting": 0,
"Server(mpm_event) reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting": 0,
"Server(mpm_prefork) reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting": 0
}
}
Adding conf, so this is an install
fpm_errors:
{
"alt-php54-fpm": {
"reached max_children": 0
},
"alt-php55-fpm": {
"reached max_children": 0
},
"alt-php56-fpm": {
"reached max_children": 0
},
"alt-php70-fpm": {
"reached max_children": 0
},
"alt-php71-fpm": {
"reached max_children": 0
},
"alt-php72-fpm": {
"reached max_children": 0
},
"alt-php73-fpm": {
"reached max_children": 0
},
"alt-php74-fpm": {
"reached max_children": 0
},
"alt-php80-fpm": {
"reached max_children": 0
},
"alt-php81-fpm": {
"reached max_children": 0
},
"alt-php82-fpm": {
"reached max_children": 0
},
"alt-php83-fpm": {
"reached max_children": 0
},
"plesk-php74-fpm": {
"reached max_children": 0
},
"plesk-php81-fpm": {
"reached max_children": 0
},
"plesk-php82-fpm": {
"reached max_children": 0
},
"plesk-php83-fpm": {
"reached max_children": 0
},
"plugin_error": {
"runtime_error": 0
}
}
Conf already added, so this is an upgrade
provider_metrics:
{
"firewall_up": 1,
"http_response_code": 200,
"http_response_time_ms": 11.344,
"imunify360_and_fail2ban": 1,
"imunify360_license": 1,
"imunify360_services": 0,
"kcare_status": 1,
"mysql_free_connections": 187,
"mysql_iptables_drop": 1,
"mysql_response_time_ms": 9.380102157592773,
"oom_kills_since_reboot": 1,
"queue_size": 0,
"ram_upgrade_required": 0,
"recent_oom_kills": 0,
"smtp_response_time_ms": 5.812883377075195,
"ssh_port_checksum_ok": 1,
"time_sync_enabled": 1
}
|
| stdout_lines |
[ "Adding conf, so this is an install", "apache_errors:", "{", " \"apache_errors\": {", " \"Scoreboard is full, not at MaxRequestWorkers\": 0,", " \"Scoreboard is full, note at MaxRequestWorkers.Increase ServerLimit\": 0,", " \"Server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting\": 0,", " \"Server(mpm_event) reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting\": 0,", " \"Server(mpm_prefork) reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting\": 0", " }", "}", "Adding conf, so this is an install", "fpm_errors:", "{", " \"alt-php54-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php55-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php56-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php70-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php71-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php72-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php73-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php74-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php80-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php81-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php82-fpm\": {", " \"reached max_children\": 0", " },", " \"alt-php83-fpm\": {", " \"reached max_children\": 0", " },", " \"plesk-php74-fpm\": {", " \"reached max_children\": 0", " },", " \"plesk-php81-fpm\": {", " \"reached max_children\": 0", " },", " \"plesk-php82-fpm\": {", " \"reached max_children\": 0", " },", " \"plesk-php83-fpm\": {", " \"reached max_children\": 0", " },", " \"plugin_error\": {", " \"runtime_error\": 0", " }", "}", "Conf already added, so this is an upgrade", "provider_metrics:", "{", " \"firewall_up\": 1,", " \"http_response_code\": 200,", " \"http_response_time_ms\": 11.344,", " \"imunify360_and_fail2ban\": 1,", " \"imunify360_license\": 1,", " \"imunify360_services\": 0,", " \"kcare_status\": 1,", " \"mysql_free_connections\": 187,", " \"mysql_iptables_drop\": 1,", " \"mysql_response_time_ms\": 9.380102157592773,", " \"oom_kills_since_reboot\": 1,", " \"queue_size\": 0,", " \"ram_upgrade_required\": 0,", " \"recent_oom_kills\": 0,", " \"smtp_response_time_ms\": 5.812883377075195,", " \"ssh_port_checksum_ok\": 1,", " \"time_sync_enabled\": 1", "}" ] |