From 2f4b59c8aa1cee92f7fa53e8a052dd1540a89b43 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 4 Jul 2023 20:01:39 -0400 Subject: [PATCH] fix: do not reboot twice when using taskfile to nuke --- .taskfiles/AnsibleTasks.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.taskfiles/AnsibleTasks.yaml b/.taskfiles/AnsibleTasks.yaml index b2bcac67..7a6525c0 100644 --- a/.taskfiles/AnsibleTasks.yaml +++ b/.taskfiles/AnsibleTasks.yaml @@ -62,9 +62,7 @@ tasks: desc: Uninstall Kubernetes on the nodes dir: "{{.ANSIBLE_DIR}}" interactive: true - cmds: - - ansible-playbook -i {{.ANSIBLE_INVENTORY_DIR}}/hosts.yaml {{.ANSIBLE_PLAYBOOK_DIR}}/cluster-nuke.yaml - - task: force-reboot + cmd: ansible-playbook -i {{.ANSIBLE_INVENTORY_DIR}}/hosts.yaml {{.ANSIBLE_PLAYBOOK_DIR}}/cluster-nuke.yaml env: ANSIBLE_CONFIG: "{{.ANSIBLE_DIR}}/ansible.cfg"