Skip to content

Commit

Permalink
Adds shutdown playbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndouglas committed Mar 25, 2024
1 parent 54eeda6 commit 0ace9f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions playbooks/shutdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Description: Cleanly shut down the hosts in the cluster.

- name: 'Shut down the hosts in the cluster.'
hosts: 'all'
tasks:
- name: 'Shut down the hosts.'

Check failure on line 6 in playbooks/shutdown.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

no-changed-when

Commands should not change things if nothing needs doing.
ansible.builtin.command:
cmd: 'shutdown -h now'
become: true

0 comments on commit 0ace9f5

Please sign in to comment.