This commit is contained in:
Marco Ochse 2023-06-30 23:23:15 +02:00
parent 38b1e99673
commit 3f472f594a

View file

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