Revert "Use raw command for shutdown task"

This reverts commit 31de83b3ff.

Raw poweroff command only needed on CoreOS because it doesn't have
Python
This commit is contained in:
Khue Doan
2021-11-16 11:40:23 +07:00
parent 721eb7732e
commit 404454843a

View File

@ -3,8 +3,8 @@
gather_facts: no
tasks:
- name: Unconditionally shut down the machine
raw: poweroff
ignore_errors: yes
community.general.shutdown:
delay: 0
ignore_unreachable: yes
- name: Wait for the machine to shutdown
shell: "until ! ping -c 1 {{ ansible_host }}; do sleep 1; done"