This commit is contained in:
parent
91a4813c0c
commit
6b9c1665ff
@ -5,7 +5,7 @@
|
||||
async: 1
|
||||
poll: 0
|
||||
ignore_errors: true
|
||||
when: not require_reboot
|
||||
when: not require_reboot | bool
|
||||
listen: __network_restart
|
||||
|
||||
- name: Reboot server
|
||||
@ -13,7 +13,7 @@
|
||||
async: 1
|
||||
poll: 0
|
||||
ignore_errors: true
|
||||
when: require_reboot
|
||||
when: require_reboot | bool
|
||||
listen: __host_reboot
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
- name: Set flag require_reboot
|
||||
set_fact:
|
||||
require_reboot: "{{ true if network_fqdn != ansible_fqdn else false }}"
|
||||
require_reboot: "{{ True if network_fqdn != ansible_fqdn else False }}"
|
||||
- include_tasks: config.yml
|
||||
- include_tasks: post_tasks.yml
|
||||
|
@ -1,3 +0,0 @@
|
||||
---
|
||||
- name: Force running handlers
|
||||
meta: flush_handlers
|
Loading…
Reference in New Issue
Block a user