11-25 update
This commit is contained in:
@ -3,6 +3,12 @@
|
||||
# optionally it creates a new inventory file on the jenkins host
|
||||
# if the appropriate variable is declared
|
||||
|
||||
- name: Install iptables-persistent
|
||||
apt:
|
||||
name:
|
||||
- iptables-persistent
|
||||
state: present
|
||||
|
||||
# check interfaces
|
||||
- name: check interfaces for vmpbr0
|
||||
shell: ip -o -4 ad
|
||||
@ -37,7 +43,7 @@
|
||||
|
||||
- name: Reboot
|
||||
when: '"vmpbr0" not in ip_ad_output.stdout'
|
||||
command: "reboot now"
|
||||
shell: "( sleep 5 ; reboot now ) & "
|
||||
ignore_errors: yes
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user