Commit 6b689e58 authored by nanahira's avatar nanahira

move

parent d051eee6
...@@ -22,18 +22,3 @@ ...@@ -22,18 +22,3 @@
become: true become: true
apt: apt:
autoremove: true autoremove: true
- name: 系统源 重启
shell: reboot
async: 0
poll: 0
register: reboot_result
args:
removes: /var/run/reboot-required
when: reboot_allowed
- name: 系统源 重启等待
local_action: wait_for host={{ ansible_ssh_host }} state=started
when: reboot_result.changed
- name: 重新读取主机信息
setup:
when: reboot_result.changed
...@@ -23,3 +23,17 @@ ...@@ -23,3 +23,17 @@
chain: FORWARD chain: FORWARD
flush: true flush: true
when: 'hypervisor' when: 'hypervisor'
- name: 系统源 重启
shell: reboot
async: 0
poll: 0
register: reboot_result
args:
removes: /var/run/reboot-required
when: reboot_allowed
- name: 系统源 重启等待
local_action: wait_for host={{ ansible_ssh_host }} state=started
when: reboot_result.changed
- name: 重新读取主机信息
setup:
when: reboot_result.changed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment