This commit is contained in:
Marco Ochse 2023-06-30 22:51:25 +02:00
parent 4df54390dc
commit 38b1e99673

View file

@ -302,7 +302,7 @@
- name: Restart SSH - name: Restart SSH
service: service:
name: "{{ 'sshd' if ansible_distribution == 'Debian|openSUSE Tumbleweed' else 'ssh' }}" name: "{{ 'sshd' if ansible_distribution == 'Debian|Fedora|openSUSE Tumbleweed' else 'ssh' }}"
state: restarted state: restarted
enabled: true enabled: true
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"] when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]