vhost_update: add in some basic excludes handling
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
0614cbd83b
commit
1ff28544c1
1 changed files with 18 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
||||||
user: root
|
user: root
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Apply updates
|
- name: Apply updates
|
||||||
package:
|
package:
|
||||||
state: latest
|
state: latest
|
||||||
|
@ -49,6 +50,23 @@
|
||||||
update_cache: true
|
update_cache: true
|
||||||
async: 7200
|
async: 7200
|
||||||
poll: 30
|
poll: 30
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
msg:
|
||||||
|
- '!!!!!!!!!!!!!!!!!!! host {{ inventory_hostname }} has EXCLUDES OF {{ package_excludes }} !!!!!!!!!!!!!'
|
||||||
|
- '!!!!!!!!!!!!!!!!!!! DANGER DANGER DANGER ^ CHECK THAT EXCLUDES ARE STILL NEEDED ^ !!!!!!!!!!!!!!!!!!!!'
|
||||||
|
when: package_excludes is defined
|
||||||
|
changed_when: true
|
||||||
|
|
||||||
|
- name: Apply updates with excludes
|
||||||
|
package:
|
||||||
|
state: latest
|
||||||
|
name: "*"
|
||||||
|
update_cache: true
|
||||||
|
exclude: "{{ package_excludes }}"
|
||||||
|
async: 7200
|
||||||
|
poll: 30
|
||||||
|
when: package_excludes is 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