Commit 77b9e064 authored by nanahira's avatar nanahira

fix

parent a50a608f
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
register: reboot_result register: reboot_result
args: args:
removes: /var/run/reboot-required removes: /var/run/reboot-required
when: reboot_allowed when: reboot
- name: 系统源 重启等待 - name: 系统源 重启等待
local_action: wait_for host={{ ansible_ssh_host }} state=started local_action: wait_for host={{ ansible_ssh_host }} state=started
when: reboot_result.changed when: reboot and reboot_result.changed
- name: 重新读取主机信息 - name: 重新读取主机信息
setup: setup:
when: reboot_result.changed when: reboot and 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