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
|
user: root
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: expire-caches
|
- name: Apply updates
|
||||||
command: yum clean expire-cache
|
package:
|
||||||
when: ansible_distribution_major_version|int < 22
|
state: latest
|
||||||
|
name: "*"
|
||||||
- name: yum -y {{ yumcommand }}
|
update_cache: true
|
||||||
command: yum -y {{ yumcommand }}
|
|
||||||
async: 7200
|
async: 7200
|
||||||
poll: 30
|
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
|
- name: run rkhunter if installed
|
||||||
hosts: "{{ target }}:myvms_new"
|
hosts: "{{ target }}:myvms_new"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue