machine_setup/ansible/roles/sshd/handlers/main.yaml

15 lines
281 B
YAML
Raw Normal View History

2022-10-13 00:16:27 +00:00
- 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