{"id":5746,"sha1":"ab0ea940f43e7492fa9bc90624af36b38e9740e8","playbook":{"id":3626,"items":{"plays":1,"tasks":6,"results":6,"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":"versatile-chipmunk.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":["RM10128.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":80,"name":"subset:versatile-chipmunk.man-1.vm.plesk-server.com"}],"started":"2025-09-10T12:45:56.920124+01:00","ended":"2025-09-10T12:46:05.725753+01:00","duration":"00:00:08.805629","name":null,"ansible_version":"2.16.11","client_version":"1.7.3","python_version":"3.10.10","server_version":"1.7.3","status":"completed","path":"/home/ssh-gateway/ansible/kuly/RM10128.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to check provider metrics health\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Gather info\n      plesk_info:\n      register: plsk\n    - name: Run commands on plesk servers\n      when: plsk.plesk_found\n      block:\n        - name: Upload the script\n          ansible.builtin.copy:\n            src: RM10128-bash-script.sh\n            dest: /tmp/RM10128-bash-script.sh\n            mode: '0755'\n          changed_when: false\n        - name: Execute the script\n          ansible.builtin.command: /tmp/RM10128-bash-script.sh\n          register: whois_result\n          ignore_errors: true\n          changed_when: whois_result.stdout == 'JSON structure mismatch'\n        - name: Save to list\n          when: whois_result.stdout == 'JSON structure mismatch'\n          ansible.builtin.lineinfile:\n            path: /home/ssh-gateway/ansible/kuly/RM10128-bad-hosts.txt\n            create: true\n            mode: '0644'\n            line: '{{ inventory_hostname }}'\n          delegate_to: localhost\n          changed_when: false\n        - name: Show script result\n          ansible.builtin.debug:\n            msg: \"Result: {{ whois_result.stdout }}\"\n        - name: Remove the script\n          ansible.builtin.command: rm -f /tmp/RM10128-bash-script.sh\n          changed_when: false\n          failed_when: false\n","created":"2025-09-10T12:45:56.938424+01:00","updated":"2025-09-10T12:45:56.938446+01:00","path":"/home/ssh-gateway/ansible/kuly/RM10128.yaml"}