{"id":1095,"sha1":"1c7785191f25f5a0302d6e68fd1df34b6e53d6d8","playbook":{"id":1094,"items":{"plays":1,"tasks":2,"results":245,"hosts":135,"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/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":["which_my_cnf_is_ok.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2024-08-19T13:55:01.028599+01:00","ended":"2024-08-19T13:55:47.680501+01:00","duration":"00:00:46.651902","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/which_my_cnf_is_ok.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to run big commands\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Run plesk command and capture output\n      ansible.builtin.shell: |\n        set -o pipefail\n        /sbin/plesk -v | grep \"Product version\" | cut -d \":\" -f2\n      args:\n        executable: /bin/bash\n      register: plsk_out\n      changed_when: false\n    - name: Run a command\n      when: \"'Plesk' in plsk_out.stdout\"\n      ansible.builtin.shell: |\n        set -o pipefail\n        [ -x /usr/local/psa/bin/plesk ] && [ \"$(md5sum /etc/my.cnf | awk '{print $1}')\" = \"7a331d53652222772b8a443231efa3fc\" ] && [ \"$(md5sum /etc/layershift-default.cnf | awk '{print $1}')\" = \"418a8d02c0d5350721fb25c7314be208\" ] && exit 0 || exit 1\n      args:\n        executable: /bin/bash\n      changed_when: false\n","created":"2024-08-19T13:55:01.053334+01:00","updated":"2024-08-19T13:55:01.053355+01:00","path":"/home/ssh-gateway/ansible/which_my_cnf_is_ok.yaml"}