Ansible Playbook examples
Reboot hosts playbook
cat <<EOF > playbook_reboot.yml
- name: "Reboot"
hosts: all
become: yes
become_method: sudo
gather_facts: no
tasks:
- reboot:
EOF
cat <<EOF > playbook_reboot.yml
- name: "Reboot"
hosts: all
become: yes
become_method: sudo
gather_facts: no
tasks:
- reboot:
EOF