{"id":6418,"sha1":"cee29f68c936d697aea5903f57dedada9a9ee92d","playbook":{"id":4298,"items":{"plays":1,"tasks":0,"results":0,"hosts":0,"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":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":["zz-rm10179-check-for-php-errors.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2025-11-04T12:40:30.407510Z","ended":"2025-11-04T12:40:30.654820Z","duration":"00:00:00.247310","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/zz-rm10179-check-for-php-errors.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Check with the script for errors\n  hosts: all\n  gather_facts: false\n  tasks:\n    - name: Get server info\n      plesk_info:\n      register: plsk\n    - name: On plesk server execute block\n      when: plsk.plesk_found\n      block:\n        - name: Upload script\n          ansible.builtin.copy:\n            src: zz-rm10179-check-for-php-errors.sh\n            dest: /root/zz-rm10179-check-for-php-errors.sh\n            mode: '0755'\n          changed_when: false\n        - name: Execute the script\n          ansible.builtin.shell: |\n            set -o pipefail\n            /root/zz-rm10179-check-for-php-errors.sh\n          args:\n            executable: /bin/bash\n          register: script_out\n          changed_when: script_out.stdout | length > 0\n        - name: Display errors if found\n          when: script_out.stdout | length > 0\n          ansible.builtin.lineinfile:\n            path: \"/home/ssh-gateway/ansible/kuly/zz-rm10179-check-for-php-errors.txt\"\n            line: \"{{ inventory_hostname }} - fpm error on {{ script_out.stdout_lines }}\"\n            create: true\n            mode: '0644'\n          delegate_to: 127.0.0.1\n","created":"2025-11-04T12:40:30.441393Z","updated":"2025-11-04T12:40:30.441416Z","path":"/home/ssh-gateway/ansible/kuly/zz-rm10179-check-for-php-errors.yaml"}