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

7 lines
137 B
YAML
Raw Normal View History

2017-04-24 12:22:51 +00:00
- name: restart sshd
2021-02-18 15:40:18 +00:00
service:
name: '{{ sshd_service_name }}'
state: restarted
when: ssh_server_enabled | bool
2018-12-17 12:50:15 +00:00
become: yes