This commit is contained in:
parent
6868b7fa2d
commit
a5d22b014b
@ -6,9 +6,12 @@
|
|||||||
poll: 0
|
poll: 0
|
||||||
when: not require_reboot | bool
|
when: not require_reboot | bool
|
||||||
listen: __network_restart
|
listen: __network_restart
|
||||||
|
tags:
|
||||||
|
- skip_ansible_later
|
||||||
|
|
||||||
- name: Reboot server
|
- name: Reboot server
|
||||||
shell: sleep 2 && shutdown -r now "Reboot triggered by Ansible"
|
reboot:
|
||||||
|
msg: "Reboot triggered by Ansible"
|
||||||
async: 1
|
async: 1
|
||||||
poll: 0
|
poll: 0
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
__network_restart_command: sleep 2 && systemctl restart network
|
__network_restart_command: systemctl restart network
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
__network_restart_command: |-
|
__network_restart_command: |-
|
||||||
nmcli connection reload &&
|
nmcli connection reload
|
||||||
{%- for file in __network_ifcfg | json_query('results[?changed==`true`].dest') %}
|
{%- for file in __network_ifcfg | json_query('results[?changed==`true`].dest') %}
|
||||||
nmcli conn up {{ file }}
|
&& nmcli conn up {{ file }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user