{"id":3954,"sha1":"6a8593efe5641f050d0aea4f86976eca5257e553","playbook":{"id":1993,"items":{"plays":1,"tasks":9,"results":1455,"hosts":166,"files":11,"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":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":["check_if_cron_enabled.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2024-09-25T12:36:08.561695+01:00","ended":"2024-09-25T12:39:01.347877+01:00","duration":"00:02:52.786182","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/check_if_cron_enabled.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to check if there is a leftover cron as per RM9718\n  hosts: all\n  gather_facts: false\n  roles:\n    - plesk\n    - imunify360\n  tasks:\n    - name: Check if imunify360 cron exists\n      when: plesk_found and imunify_found\n      ansible.builtin.shell: |\n        set -o pipefail\n        ls -la /etc/cron.d/imunify360-firewall-update\n      args:\n        executable: /bin/bash\n      changed_when: false\n      register: imout\n\n    - name: Save missing cron servers to file\n      when: imout.rc == 2  # File is not found\n      ansible.builtin.lineinfile:\n        path: /home/ssh-gateway/ansible/kuly/missing-im\n        line: \"{{ ansible_hostname }}\"\n        create: true\n        mode: '0644'\n      delegate_to: 127.0.0.1\n","created":"2024-09-25T12:36:08.582437+01:00","updated":"2024-09-25T12:36:08.582457+01:00","path":"/home/ssh-gateway/ansible/kuly/check_if_cron_enabled.yaml"}