{"id":1394,"sha1":"2224979a291c01f2ea4b0c369adc433b96e1a2b9","playbook":{"id":1194,"items":{"plays":1,"tasks":1,"results":1,"hosts":1,"files":6,"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":"*versatile-chipmunk*","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":["projects/RM9703/RM9703-update-httpd.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":100,"name":"subset:*versatile-chipmunk*"}],"started":"2024-08-22T10:14:07.865760+01:00","ended":"2024-08-22T10:14:10.084288+01:00","duration":"00:00:02.218528","name":null,"ansible_version":"2.17.3","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"failed","path":"/home/ssh-gateway/ansible/projects/RM9703/RM9703-update-httpd.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to update httpd\n  hosts: all\n  roles:\n    - plesk\n  tasks:\n    - name: Update and check\n      when: \"'Plesk' in plsk_out.stdout\"\n      block:\n        - name: Check if OS is CentOS 7\n          ansible.builtin.set_fact:\n            package_manager: \"{{ 'yum' if ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7' else 'dnf' }}\"\n        - name: Print the package manager\n          ansible.builtin.debug:\n            var:\n              package_manager\n        - name: Update httpd\n          when: package_manager == \"yum\"\n          ansible.builtin.yum:\n            name: httpd\n            state: latest\n            update_cache: true\n        - name: Update httpd using other\n          when: package_manager == \"dnf\"\n          ansible.builtin.dnf:\n            name: httpd\n            state: latest\n            update_cache: true\n","created":"2024-08-22T10:14:07.887153+01:00","updated":"2024-08-22T10:14:07.887174+01:00","path":"/home/ssh-gateway/ansible/projects/RM9703/RM9703-update-httpd.yaml"}