Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-10-04 23:05:14 +02:00
parent ab5435961b
commit 2284a02d72
2 changed files with 17 additions and 2 deletions

View file

@ -17,3 +17,10 @@
systemd:
name: sshd
state: restarted
when: ansible_os_family == 'Archlinux'
- name: restart ssh
systemd:
name: ssh
state: restarted
when: ansible_os_family == 'Debian'

View file

@ -22,8 +22,16 @@
group: root
mode: '0600'
- name: Ensure ssh service is started and enabled
systemd:
name: ssh
enabled: yes
state: started
when: ansible_os_family == 'Debian'
- name: Ensure sshd service is started and enabled
systemd:
name: sshd
enabled: yes
state: started
when: ansible_os_family == 'Archlinux'