ansible-common/roles/secure/handlers/main.yml

9 lines
165 B
YAML

---
- name: reboot system
ansible.builtin.reboot:
when: common_allow_restart
- name: restart ssh
ansible.builtin.service:
name: sshd
state: restarted