machine_setup/ansible/roles/sshd/handlers/main.yaml
2022-10-12 20:16:27 -04:00

15 lines
281 B
YAML

- name: restart sshd freebsd
when: 'os_flavor == "freebsd"'
listen: restart sshd
service:
name: sshd
state: reloaded
- name: restart ssh linux
when: 'os_flavor == "linux"'
listen: restart sshd
systemd:
state: reloaded
name: sshd
daemon_reload: yes