aouaou
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
ab5435961b
commit
2284a02d72
2 changed files with 17 additions and 2 deletions
|
@ -16,4 +16,11 @@
|
|||
- name: restart sshd
|
||||
systemd:
|
||||
name: sshd
|
||||
state: restarted
|
||||
state: restarted
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
|
||||
- name: restart ssh
|
||||
systemd:
|
||||
name: ssh
|
||||
state: restarted
|
||||
when: ansible_os_family == 'Debian'
|
|
@ -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
|
||||
state: started
|
||||
when: ansible_os_family == 'Archlinux'
|
Loading…
Reference in a new issue