vhost_update: switch to package to call the right backend and fix other issues.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
3a5f3c7894
commit
5be0661c51
1 changed files with 5 additions and 13 deletions
|
@ -42,21 +42,13 @@
|
|||
user: root
|
||||
|
||||
tasks:
|
||||
- name: expire-caches
|
||||
command: yum clean expire-cache
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: yum -y {{ yumcommand }}
|
||||
command: yum -y {{ yumcommand }}
|
||||
- name: Apply updates
|
||||
package:
|
||||
state: latest
|
||||
name: "*"
|
||||
update_cache: true
|
||||
async: 7200
|
||||
poll: 30
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: dnf -y {{ yumcommand }} --refresh
|
||||
command: dnf -y {{ yumcommand }} --refresh
|
||||
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