updating vhost_update playbook to handle f22+ dnf hosts
This commit is contained in:
parent
c1a0a783e8
commit
aef03726b0
1 changed files with 13 additions and 1 deletions
|
@ -35,11 +35,23 @@
|
|||
|
||||
- name: expire-caches
|
||||
command: yum clean expire-cache
|
||||
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: expire-caches
|
||||
command: dnf clean expire-cache
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: yum -y {{ yumcommand }}
|
||||
command: yum -y {{ yumcommand }}
|
||||
async: 7200
|
||||
poll: 30
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: dnf -y {{ yumcommand }}
|
||||
command: dnf -y {{ yumcommand }}
|
||||
async: 7200
|
||||
poll: 30
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: run rkhunter if installed
|
||||
hosts: "{{ target }}:myvms_new"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue