get rid of useless shit

This commit is contained in:
quackerd 2021-06-15 01:36:01 -04:00
parent 83a28e42bd
commit 26522d9651
1 changed files with 1 additions and 9 deletions

View File

@ -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'