mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-30 06:39:33 +07:00
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:
@ -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"
|
||||
|
Reference in New Issue
Block a user