{"id":2618,"sha1":"ca107663e2fd0a50fb56ec0f2e14522fac0a32eb","playbook":{"id":1610,"items":{"plays":1,"tasks":4,"results":31,"hosts":10,"files":6,"records":0},"arguments":{"version":null,"verbosity":0,"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/canary-inventory"],"listhosts":false,"subset":null,"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":["update_provider_metrics.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2024-09-10T13:12:46.756431+01:00","ended":"2024-09-10T13:12:54.664534+01:00","duration":"00:00:07.908103","name":null,"ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"failed","path":"/home/ssh-gateway/ansible/kuly/update_provider_metrics.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to upgrade provider_metrics\n  hosts: all\n  gather_facts: false\n  roles:\n    - plesk\n  tasks:\n    - name: Get the hostname line\n      when: plesk_found\n      block:\n        - name: Match the pattern\n          ansible.builtin.shell: |\n            set -o pipefail\n            grep \"host=\" /etc/agent360-custom.ini\n          args:\n            executable: /bin/bash\n          register: host_out\n          changed_when: false\n\n        - name: Replace the line that matches 'host=' with an empty line\n          when: \"'host=' in host_out.stdout\"\n          ansible.builtin.replace:\n            path: /etc/agent360-custom.ini\n            regexp: '^host=.*'\n            replace: ''\n","created":"2024-09-10T13:12:46.773917+01:00","updated":"2024-09-10T13:12:46.773937+01:00","path":"/home/ssh-gateway/ansible/kuly/update_provider_metrics.yaml"}