ansible_public/playbooks/fast_fixes/shutdown.yaml
2022-06-14 18:53:16 +02:00

9 lines
212 B
YAML

---
- hosts: "{{ variable_host | default('lab15_standard') }}"
gather_facts: no
tasks:
- name: shutdown hosts
command: shutdown -h now
# when: ansible_facts['os_family'] == "Debian"
become: yes