reboot.yml (324B)
1 --- 2 - name: Reboot the system after stopping all services and backing up the databases 3 hosts: all 4 gather_facts: false 5 pre_tasks: 6 - name: Gather host facts without logging stored local secrets 7 ansible.builtin.setup: 8 no_log: true 9 10 roles: 11 - role: stop_services 12 - role: backup 13 - role: reboot