Add debug task to display skip_reboot value and fix condition check for reboot
This commit is contained in:
parent
50503b1435
commit
f67906d113
@ -15,9 +15,13 @@
|
||||
apt:
|
||||
autoclean: yes
|
||||
|
||||
- name: Show skip_reboot value
|
||||
debug:
|
||||
var: skip_reboot
|
||||
|
||||
- name: Reboot if tasks changed things
|
||||
reboot:
|
||||
msg: "Reboot triggered by Ansible after system changes."
|
||||
when:
|
||||
- ansible_facts['pkg_mgr'] == "apt"
|
||||
- skip_reboot is not defined or skip_reboot != true
|
||||
- skip_reboot is not defined or skip_reboot != "true"
|
||||
Loading…
x
Reference in New Issue
Block a user