feat(ssh): ssh daemon name

This commit is contained in:
Bertrand Benjamin 2019-02-06 20:18:37 +01:00
parent fcf69ed9d8
commit cc4e16b795

View File

@ -43,11 +43,18 @@
tags: tags:
- first_deployement - first_deployement
- name: Enable SSH daemon - name: Enable SSH daemon (not Debian)
service: service:
name: sshd name: sshd
state: started state: started
enabled: yes enabled: yes
tags: tags:
- first_deployement - first_deployement
when: ansible_distribution != 'Debian'
- name: Enable SSH daemon (Debian)
service:
name: ssh
state: started
enabled: yes
when: ansible_distribution == 'Debian'