{"id":4376,"sha1":"69467a79ae929d98640361a57f04878aba56ce50","playbook":{"id":2300,"items":{"plays":1,"tasks":1,"results":16,"hosts":16,"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":true,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"*.chi*","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":3,"name":"tags:all"},{"id":10,"name":"check:True"},{"id":165,"name":"subset:*.chi*"}],"started":"2024-12-09T12:54:43.708323Z","ended":"2024-12-09T12:54:47.552952Z","duration":"00:00:03.844629","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/switch_agent360_to_root.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to switch agent360 to root\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Run commands\n      ansible.builtin.shell: |\n        set -o pipefail\n        rm -f /etc/sudoers.d/agent360\n        rm -f /tmp/*sum*\n        mkdir /etc/systemd/system/agent360.service.d/\n        echo -e \"[Service]\\nUser=root\" > /etc/systemd/system/agent360.service.d/override.conf\n        systemctl daemon-reload\n        systemctl restart agent360.service\n        curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s apache_errors\n        curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s fpm_errors\n        curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s provider_metrics\n      args:\n        executable: /bin/bash\n      changed_when: false\n","created":"2024-12-09T12:54:43.723964Z","updated":"2024-12-09T12:54:43.723982Z","path":"/home/ssh-gateway/ansible/kuly/switch_agent360_to_root.yaml"}