Execution
Date 22 Aug 2024 10:15:50 +0100
Duration 00:00:00.83
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
  gather_facts: false
  roles:
    - plesk
  tasks:
    - name: Update and check
      when: "'Plesk' in plsk_out.stdout"
      ansible.builtin.yum:
        name: httpd
        state: latest
        update_cache: true