{"id":185533,"status":"ok","playbook":{"id":2303,"items":{"plays":1,"tasks":1,"results":233,"hosts":233,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"*.man-1*","extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["switch_agent360_to_root.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":167,"name":"subset:*.man-1*"}],"started":"2024-12-09T15:42:34.799512Z","ended":"2024-12-09T15:47:44.490254Z","duration":"00:05:09.690742","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"failed","path":"/home/ssh-gateway/ansible/kuly/switch_agent360_to_root.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":2618,"items":{"tasks":1,"results":233},"started":"2024-12-09T15:42:34.834204Z","ended":"2024-12-09T15:47:33.036329Z","duration":"00:04:58.202125","name":"Playbook to switch agent360 to root","status":"completed"},"task":{"id":5685,"items":{"results":233},"path":"/home/ssh-gateway/ansible/kuly/switch_agent360_to_root.yaml","tags":[],"started":"2024-12-09T15:42:35.287942Z","ended":"2024-12-09T15:47:32.986785Z","duration":"00:04:57.698843","name":"Run commands","uuid":"001851d0-75dc-8b79-5be8-00000000011e","action":"ansible.builtin.shell","lineno":6,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":4379},"host":{"id":77521,"name":"cyan-shape.man-1.vm.plesk-server.com","changed":0,"failed":0,"ok":1,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"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","delta":"0:00:05.427591","end":"2024-12-09 15:43:55.630494","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:43:50.202903","stderr":"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100  1973  100  1973    0     0   107k      0 --:--:-- --:--:-- --:--:--  107k\nRedirecting to /bin/systemctl restart agent360.service\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100  3111  100  3111    0     0   116k      0 --:--:-- --:--:-- --:--:--  116k\nRedirecting to /bin/systemctl restart agent360.service\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100 10685  100 10685    0     0   401k      0 --:--:-- --:--:-- --:--:--  401k\nRedirecting to /bin/systemctl status kcare.service\n# Warning: iptables-legacy tables present, use iptables-legacy to see them\n# Warning: iptables-legacy tables present, use iptables-legacy to see them\n# Warning: iptables-legacy tables present, use iptables-legacy to see them\n# Warning: iptables-legacy tables present, use iptables-legacy to see them\nRedirecting 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  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  3111  100  3111    0     0   116k      0 --:--:-- --:--:-- --:--:--  116k","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   401k      0 --:--:-- --:--:-- --:--:--  401k","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":"Conf already added, so this is an upgrade\napache_errors:\n{\n    \"apache_errors\": {\n        \"Scoreboard is full, not at MaxRequestWorkers\": 0,\n        \"Scoreboard is full, note at MaxRequestWorkers.Increase ServerLimit\": 0,\n        \"Server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting\": 0,\n        \"Server(mpm_event) reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting\": 0,\n        \"Server(mpm_prefork) reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting\": 0\n    }\n}\nConf already added, so this is an upgrade\nfpm_errors:\n{\n    \"alt-php54-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php55-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php56-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php70-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php71-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php72-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php73-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php74-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php80-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php81-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php82-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"alt-php83-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"plesk-php74-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"plesk-php81-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"plesk-php82-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"plesk-php83-fpm\": {\n        \"reached pm.max_children\": 0\n    },\n    \"plugin_error\": {\n        \"runtime_error\": 0\n    }\n}\nConf already added, so this is an upgrade\nprovider_metrics:\n{\n    \"firewall_up\": 1,\n    \"http_response_code\": 200,\n    \"http_response_time_ms\": 7.7,\n    \"imunify360_and_fail2ban\": 1,\n    \"imunify360_license\": 1,\n    \"imunify360_services\": 0,\n    \"kcare_status\": 1,\n    \"mysql_free_connections\": 197,\n    \"mysql_iptables_drop\": 1,\n    \"mysql_response_time_ms\": 6.30950927734375,\n    \"oom_kills_since_reboot\": 0,\n    \"queue_size\": 0,\n    \"ram_upgrade_required\": 0,\n    \"recent_oom_kills\": 0,\n    \"smtp_response_time_ms\": 5.24139404296875,\n    \"ssh_port_checksum_ok\": 1,\n    \"time_sync_enabled\": 1\n}","stdout_lines":["Conf already added, so this is an upgrade","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","    }","}","Conf already added, so this is an upgrade","fpm_errors:","{","    \"alt-php54-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php55-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php56-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php70-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php71-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php72-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php73-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php74-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php80-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php81-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php82-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"alt-php83-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"plesk-php74-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"plesk-php81-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"plesk-php82-fpm\": {","        \"reached pm.max_children\": 0","    },","    \"plesk-php83-fpm\": {","        \"reached pm.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\": 7.7,","    \"imunify360_and_fail2ban\": 1,","    \"imunify360_license\": 1,","    \"imunify360_services\": 0,","    \"kcare_status\": 1,","    \"mysql_free_connections\": 197,","    \"mysql_iptables_drop\": 1,","    \"mysql_response_time_ms\": 6.30950927734375,","    \"oom_kills_since_reboot\": 0,","    \"queue_size\": 0,","    \"ram_upgrade_required\": 0,","    \"recent_oom_kills\": 0,","    \"smtp_response_time_ms\": 5.24139404296875,","    \"ssh_port_checksum_ok\": 1,","    \"time_sync_enabled\": 1","}"]},"created":"2024-12-09T15:44:18.221924Z","updated":"2024-12-09T15:44:18.221946Z","started":"2024-12-09T15:43:49.699846Z","ended":"2024-12-09T15:44:18.167813Z","duration":"00:00:28.467967","changed":false,"ignore_errors":false}