public-health-ch/ansible/roles/dev-sec.ssh-hardening/handlers/main.yml

6 lines
137 B
YAML

- name: restart sshd
service:
name: '{{ sshd_service_name }}'
state: restarted
when: ssh_server_enabled | bool
become: yes