Add shutdown playbook.
This commit is contained in:
9
shutdown.yaml
Normal file
9
shutdown.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
# This playbook does a shutdown
|
||||
- name: Shutdown system
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Shutdown nas
|
||||
ansible.builtin.shell: sudo shutdown -h 1
|
||||
Reference in New Issue
Block a user