refactor(metal): remove shutdown playbook

Use ansible-console instead
This commit is contained in:
Khue Doan 2022-02-19 10:33:54 +07:00
parent cf94f761c4
commit 71e0828297
2 changed files with 0 additions and 16 deletions

View File

@ -17,10 +17,5 @@ cluster:
--inventory inventories/${env}.yml \
cluster.yml
shutdown:
ansible-playbook \
--inventory inventories/${env}.yml \
shutdown.yml
vagrant:
vagrant up

View File

@ -1,11 +0,0 @@
- name: Shutdown the homelab
hosts: metal
gather_facts: false
tasks:
- name: Unconditionally shut down the machine
community.general.shutdown:
delay: 0
ignore_unreachable: true
- name: Wait for the machine to shutdown
shell: "until ! ping -c 1 {{ ansible_host }}; do sleep 1; done"
delegate_to: localhost