{"id":167387,"status":"ok","playbook":{"id":2000,"items":{"plays":1,"tasks":17,"results":17,"hosts":1,"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":"wasdale.dns.man-1.vm.plesk-server.com","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":["install_superDNS.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":130,"name":"subset:wasdale.dns.man-1.vm.plesk-server.com"}],"started":"2024-09-25T13:24:29.712338+01:00","ended":"2024-09-25T13:26:06.906890+01:00","duration":"00:01:37.194552","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"completed","path":"/home/ssh-gateway/ansible/kuly/install_superDNS.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":2316,"items":{"tasks":17,"results":17},"started":"2024-09-25T13:24:29.748112+01:00","ended":"2024-09-25T13:26:06.810814+01:00","duration":"00:01:37.062702","name":"Playbook to install SuperDNS PDNS on alma8","status":"completed"},"task":{"id":5137,"items":{"results":1},"path":"/home/ssh-gateway/ansible/kuly/install_superDNS.yaml","tags":[],"started":"2024-09-25T13:25:54.570840+01:00","ended":"2024-09-25T13:26:06.624017+01:00","duration":"00:00:12.053177","name":"Install 360 monitor","uuid":"001851d0-75dc-f2d4-d885-0000000000b7","action":"ansible.builtin.shell","lineno":152,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":3996},"host":{"id":68100,"name":"wasdale.dns.man-1.vm.plesk-server.com","changed":6,"failed":0,"ok":17,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"set -o pipefail\nmon_pass=$(pwgen -s 20 | head -1)\necho -e \"webserver=yes\\nwebserver-address=127.0.0.1\\\n\\nwebserver-port=8081\\napi=yes\\napi-key=$mon_pass\\\n\\nwebserver-allow-from=127.0.0.1\" >> /etc/pdns/pdns.conf\nsystemctl restart pdns.service\ncurl -Ls https://tgz.thecode.casa/agent360_plugins/install.sh  | bash -s powerdns\nsed -i \"s/api_key=change_me/api_key=$mon_pass/g\" /etc/agent360-custom.ini\nsed -i \"s/localhost:8081/127.0.0.1:8081/g\" /etc/agent360-custom.ini\nsystemctl restart agent360.service\nsudo -u agent360 /usr/local/bin/agent360 test powerdns\n","delta":"0:00:11.439405","end":"2024-09-25 12:26:06.559582","invocation":{"module_args":{"_raw_params":"set -o pipefail\nmon_pass=$(pwgen -s 20 | head -1)\necho -e \"webserver=yes\\nwebserver-address=127.0.0.1\\\n\\nwebserver-port=8081\\napi=yes\\napi-key=$mon_pass\\\n\\nwebserver-allow-from=127.0.0.1\" >> /etc/pdns/pdns.conf\nsystemctl restart pdns.service\ncurl -Ls https://tgz.thecode.casa/agent360_plugins/install.sh  | bash -s powerdns\nsed -i \"s/api_key=change_me/api_key=$mon_pass/g\" /etc/agent360-custom.ini\nsed -i \"s/localhost:8081/127.0.0.1:8081/g\" /etc/agent360-custom.ini\nsystemctl restart agent360.service\nsudo -u agent360 /usr/local/bin/agent360 test powerdns\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-09-25 12:25:55.120177","stderr":"grep: /etc/agent360-custom.ini: No such file or directory\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   153  100   153    0     0   4935      0 --:--:-- --:--:-- --:--:--  4935\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  4668  100  4668    0     0  97250      0 --:--:-- --:--:-- --:--:-- 97250\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   345  100   345    0     0  11500      0 --:--:-- --:--:-- --:--:-- 11500\nRedirecting to /bin/systemctl restart agent360.service","stderr_lines":["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   153  100   153    0     0   4935      0 --:--:-- --:--:-- --:--:--  4935","  % 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  4668  100  4668    0     0  97250      0 --:--:-- --:--:-- --:--:-- 97250","  % 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   345  100   345    0     0  11500      0 --:--:-- --:--:-- --:--:-- 11500","Redirecting to /bin/systemctl restart agent360.service"],"stdout":"Adding conf, so this is an install\npowerdns:\nExecution error: HTTP Error 401: Unauthorized\npowerdns:\n{\n    \"corrupt-packets\": 0,\n    \"deferred-cache-inserts\": 0,\n    \"deferred-cache-lookup\": 0,\n    \"deferred-packetcache-inserts\": 0,\n    \"deferred-packetcache-lookup\": 0,\n    \"dnsupdate-answers\": 0,\n    \"dnsupdate-changes\": 0,\n    \"dnsupdate-queries\": 0,\n    \"dnsupdate-refused\": 0,\n    \"fd-usage\": 25.0,\n    \"incoming-notifications\": 0,\n    \"key-cache-size\": 0.0,\n    \"latency\": 0.0,\n    \"meta-cache-size\": 0.0,\n    \"open-tcp-connections\": 0.0,\n    \"overload-drops\": 0,\n    \"packetcache-hit\": 0,\n    \"packetcache-miss\": 0,\n    \"packetcache-size\": 0.0,\n    \"qsize-q\": 0.0,\n    \"query-cache-hit\": 0,\n    \"query-cache-miss\": 0,\n    \"query-cache-size\": 0.0,\n    \"rd-queries\": 0,\n    \"real-memory-usage\": 62255104.0,\n    \"recursing-answers\": 0,\n    \"recursing-questions\": 0,\n    \"recursion-unanswered\": 0,\n    \"security-status\": 1.0,\n    \"servfail-packets\": 0,\n    \"signature-cache-size\": 0.0,\n    \"signatures\": 0,\n    \"sys-msec\": 0,\n    \"tcp-answers\": 0,\n    \"tcp-answers-bytes\": 0,\n    \"tcp-queries\": 0,\n    \"tcp4-answers\": 0,\n    \"tcp4-answers-bytes\": 0,\n    \"tcp4-queries\": 0,\n    \"tcp6-answers\": 0,\n    \"tcp6-answers-bytes\": 0,\n    \"tcp6-queries\": 0,\n    \"timedout-packets\": 0,\n    \"udp-answers\": 0,\n    \"udp-answers-bytes\": 0,\n    \"udp-do-queries\": 0,\n    \"udp-in-errors\": 0,\n    \"udp-noport-errors\": 0,\n    \"udp-queries\": 0,\n    \"udp-recvbuf-errors\": 0,\n    \"udp-sndbuf-errors\": 0,\n    \"udp4-answers\": 0,\n    \"udp4-answers-bytes\": 0,\n    \"udp4-queries\": 0,\n    \"udp6-answers\": 0,\n    \"udp6-answers-bytes\": 0,\n    \"udp6-queries\": 0,\n    \"uptime\": 11.0,\n    \"user-msec\": 0\n}","stdout_lines":["Adding conf, so this is an install","powerdns:","Execution error: HTTP Error 401: Unauthorized","powerdns:","{","    \"corrupt-packets\": 0,","    \"deferred-cache-inserts\": 0,","    \"deferred-cache-lookup\": 0,","    \"deferred-packetcache-inserts\": 0,","    \"deferred-packetcache-lookup\": 0,","    \"dnsupdate-answers\": 0,","    \"dnsupdate-changes\": 0,","    \"dnsupdate-queries\": 0,","    \"dnsupdate-refused\": 0,","    \"fd-usage\": 25.0,","    \"incoming-notifications\": 0,","    \"key-cache-size\": 0.0,","    \"latency\": 0.0,","    \"meta-cache-size\": 0.0,","    \"open-tcp-connections\": 0.0,","    \"overload-drops\": 0,","    \"packetcache-hit\": 0,","    \"packetcache-miss\": 0,","    \"packetcache-size\": 0.0,","    \"qsize-q\": 0.0,","    \"query-cache-hit\": 0,","    \"query-cache-miss\": 0,","    \"query-cache-size\": 0.0,","    \"rd-queries\": 0,","    \"real-memory-usage\": 62255104.0,","    \"recursing-answers\": 0,","    \"recursing-questions\": 0,","    \"recursion-unanswered\": 0,","    \"security-status\": 1.0,","    \"servfail-packets\": 0,","    \"signature-cache-size\": 0.0,","    \"signatures\": 0,","    \"sys-msec\": 0,","    \"tcp-answers\": 0,","    \"tcp-answers-bytes\": 0,","    \"tcp-queries\": 0,","    \"tcp4-answers\": 0,","    \"tcp4-answers-bytes\": 0,","    \"tcp4-queries\": 0,","    \"tcp6-answers\": 0,","    \"tcp6-answers-bytes\": 0,","    \"tcp6-queries\": 0,","    \"timedout-packets\": 0,","    \"udp-answers\": 0,","    \"udp-answers-bytes\": 0,","    \"udp-do-queries\": 0,","    \"udp-in-errors\": 0,","    \"udp-noport-errors\": 0,","    \"udp-queries\": 0,","    \"udp-recvbuf-errors\": 0,","    \"udp-sndbuf-errors\": 0,","    \"udp4-answers\": 0,","    \"udp4-answers-bytes\": 0,","    \"udp4-queries\": 0,","    \"udp6-answers\": 0,","    \"udp6-answers-bytes\": 0,","    \"udp6-queries\": 0,","    \"uptime\": 11.0,","    \"user-msec\": 0","}"]},"created":"2024-09-25T13:26:06.616422+01:00","updated":"2024-09-25T13:26:06.616448+01:00","started":"2024-09-25T13:25:54.620144+01:00","ended":"2024-09-25T13:26:06.607043+01:00","duration":"00:00:11.986899","changed":false,"ignore_errors":false}