From 71e0828297dbc982b267dbdcc2db08344590b6f9 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sat, 19 Feb 2022 10:33:54 +0700 Subject: [PATCH] refactor(metal): remove shutdown playbook Use ansible-console instead --- metal/Makefile | 5 ----- metal/shutdown.yml | 11 ----------- 2 files changed, 16 deletions(-) delete mode 100644 metal/shutdown.yml diff --git a/metal/Makefile b/metal/Makefile index 0f96cb68..843bfbe3 100644 --- a/metal/Makefile +++ b/metal/Makefile @@ -17,10 +17,5 @@ cluster: --inventory inventories/${env}.yml \ cluster.yml -shutdown: - ansible-playbook \ - --inventory inventories/${env}.yml \ - shutdown.yml - vagrant: vagrant up diff --git a/metal/shutdown.yml b/metal/shutdown.yml deleted file mode 100644 index 9b72bfd4..00000000 --- a/metal/shutdown.yml +++ /dev/null @@ -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