fix: do not reboot twice when using taskfile to nuke

This commit is contained in:
Devin Buhl authored and GitHub committed 2023-07-04 20:01:39 -04:00
1 parent 07eb228b34
commit 2f4b59c8aa
1 file changed
+1 -3
+1 -3
View File
@@ -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"