feat(ssh): ssh daemon name

This commit is contained in:
Bertrand Benjamin 2019-02-06 20:18:37 +01:00
parent fcf69ed9d8
commit cc4e16b795
1 changed files with 8 additions and 1 deletions

View File

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