From 26522d9651974cc1129b79889e5add2a173161aa Mon Sep 17 00:00:00 2001 From: quackerd Date: Tue, 15 Jun 2021 01:36:01 -0400 Subject: [PATCH] get rid of useless shit --- ansible/dnf-update.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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' -