Execution
Date 22 Aug 2024 10:14:42 +0100
Duration 00:00:01.08
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.17.3
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
1 Hosts
1 Tasks
1 Results
1 Plays
6 Files
0 Records

File: /home/ssh-gateway/ansible/projects/RM9703/RM9703-update-httpd.yaml

---
- name: Playbook to update httpd
  hosts: all
  roles:
    - plesk
  tasks:
    - name: Update and check
      when: "'Plesk' in plsk_out.stdout"
      block:
        - name: Update httpd
          when: package_manager == "yum"
          ansible.builtin.yum:
            name: httpd
            state: latest
            update_cache: true