diff --git a/ansible/dnf-update.yml b/ansible/dnf-update.yml index 1281be6..e71abc9 100644 --- a/ansible/dnf-update.yml +++ b/ansible/dnf-update.yml @@ -1,5 +1,5 @@ - hosts: '{{ target }}' - gather_facts: true + gather_facts: false become: true remote_user: root strategy: free @@ -8,12 +8,4 @@ dnf: name: "*" state: latest - when: ansible_facts['os_family'] == 'RedHat' and ansible_facts ['distribution_major_version'] >= '8' - - - name: yum update - yum: - name: "*" - state: latest - when: ansible_facts['os_family'] == 'RedHat' and ansible_facts ['distribution_major_version'] <= '7' -