mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-08 06:23:13 +07:00
refactor(metal): remove shutdown playbook
Use ansible-console instead
This commit is contained in:
parent
cf94f761c4
commit
71e0828297
@ -17,10 +17,5 @@ cluster:
|
|||||||
--inventory inventories/${env}.yml \
|
--inventory inventories/${env}.yml \
|
||||||
cluster.yml
|
cluster.yml
|
||||||
|
|
||||||
shutdown:
|
|
||||||
ansible-playbook \
|
|
||||||
--inventory inventories/${env}.yml \
|
|
||||||
shutdown.yml
|
|
||||||
|
|
||||||
vagrant:
|
vagrant:
|
||||||
vagrant up
|
vagrant up
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user