{"id":7323,"sha1":"e1e0746a62386afb127e0912ca05bf03499a2a39","playbook":{"id":5164,"items":{"plays":1,"tasks":2,"results":2,"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/ansible-luca/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"fine-star.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":["install-plesk-php.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":187,"name":"subset:fine-star.man-1.vm.plesk-server.com"}],"started":"2026-02-24T19:39:39.311895Z","ended":"2026-02-24T19:40:29.795206Z","duration":"00:00:50.483311","name":null,"ansible_version":"2.16.13","client_version":"1.7.4","python_version":"3.10.10","server_version":"1.7.4","status":"failed","path":"/home/ssh-gateway/ansible/ansible-luca/install-plesk-php.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: RM10252 - PHP EOL Checker\n  hosts: all\n  gather_facts: false\n\n  tasks:\n    - name: Get Info\n      plesk_info:\n      register: plsk\n\n    - name: Install both plesk-php84 and plesk-php85 handlers\n      ansible.builtin.shell: |\n        set -o pipefail\n        handlers=\"$(plesk bin php_handler --list || true)\"\n\n        need_84=0\n        need_85=0\n\n        echo \"$handlers\" | grep -q 'plesk-php84' || need_84=1\n        echo \"$handlers\" | grep -q 'plesk-php85' || need_85=1\n\n        if [ \"$need_84\" -eq 1 ]; then\n           echo \"plesk-php84 missing -> installing php8.4 component\"\n           plesk installer add --components php8.4\n        else\n           echo \"plesk-php84 present -> skip\"\n        fi\n\n        if [ \"$need_85\" -eq 1 ]; then\n           echo \"plesk-php85 missing -> installing php8.5 component\"\n           plesk installer add --components php8.5\n        else\n           echo \"plesk-php85 present -> skip\"\n        fi\n\n      args:\n        executable: /bin/bash\n      register: php_check\n      when: (plsk.plesk_found and plsk.imunify_found) or (plsk.plesk_found and plsk.cloudlinux_found)\n      changed_when: \"'installing php8.4' in php_install.stdout or 'installing php8.5' in php_install.stdout\"\n      failed_when: false\n\n    - name: Record servers missing plesk-php84 or plesk-php85\n      ansible.builtin.lineinfile:\n        create: true\n        mode: '0644'\n        path: RM10252/hostnames\n        line: \"{{ inventory_hostname }}\"\n      when: php_check.rc != 0\n      delegate_to: localhost\n","created":"2026-02-24T19:39:39.328986Z","updated":"2026-02-24T19:39:39.329015Z","path":"/home/ssh-gateway/ansible/ansible-luca/install-plesk-php.yaml"}