{"id":7185,"sha1":"2cbfba00a2daeee9170356e2084d12485cee05ee","playbook":{"id":5028,"items":{"plays":1,"tasks":4,"results":4,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"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":"elegant-lemur.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":["RM10272-alt-php-version.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":274,"name":"subset:elegant-lemur.man-1.vm.plesk-server.com"}],"started":"2026-02-02T13:45:12.154519Z","ended":"2026-02-02T13:45:23.631205Z","duration":"00:00:11.476686","name":null,"ansible_version":"2.16.11","client_version":"1.7.4","python_version":"3.10.10","server_version":"1.7.4","status":"failed","path":"/home/ssh-gateway/ansible/kuly/RM10272-alt-php-version.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Check alt-php version\n  hosts: all\n  gather_facts: false\n  vars:\n    desired_version: \"1-69\"\n  tasks:\n    - name: Get server info\n      plesk_info:\n      register: plsk\n\n    - name: Check alt-php-config version on Imunify/CloudLinux servers\n      when: >\n        plsk.plesk_found and\n        (plsk.imunify_found or plsk.cloudlinux_found)\n      block:\n        - name: Gather RPM package facts\n          ansible.builtin.package_facts:\n            manager: auto\n          changed_when: false\n\n        - name: Fail if alt-php-config is not installed\n          ansible.builtin.fail:\n            msg: \"alt-php-config package is NOT installed\"\n          when: \"'alt-php-config' not in ansible_facts.packages\"\n\n        - name: Extract clean version (strip .el8/.el9 suffix)\n          ansible.builtin.set_fact:\n            installed_version: \"{{ alt_php_pkg.version }}-{{ alt_php_pkg.release | regex_replace('\\\\.el[0-9]+.*$', '') }}\"\n          when: \"'alt-php-config' in ansible_facts.packages\"\n\n        - name: Report version status\n          ansible.builtin.debug:\n            msg: |\n              Package: alt-php-config\n              Desired version: {{ desired_version }}\n              Installed version: {{ installed_version }}\n              Status: {{ 'OK' if installed_version == desired_version else 'MISMATCH' }}\n          when: \"'alt-php-config' in ansible_facts.packages\"\n\n        - name: Fail if version mismatch\n          ansible.builtin.fail:\n            msg: \"alt-php-config version mismatch! Expected {{ desired_version }}, found {{ installed_version }}\"\n          when:\n            - \"'alt-php-config' in ansible_facts.packages\"\n            - installed_version != desired_version\n","created":"2026-02-02T13:45:12.180468Z","updated":"2026-02-02T13:45:12.180517Z","path":"/home/ssh-gateway/ansible/kuly/RM10272-alt-php-version.yaml"}