forked from jakub/ansible
Add initial_install/roles/ssh_hardening/handlers/main.yml
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: Restart SSH
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: "{{ 'sshd'
|
||||||
|
if ansible_facts.os_family in
|
||||||
|
['RedHat','Rocky','AlmaLinux','Fedora','OracleLinux','Suse']
|
||||||
|
else 'ssh' }}"
|
||||||
|
state: restarted
|
||||||
Reference in New Issue
Block a user