opensmtpd: add support for Debian

This commit is contained in:
Timotej Lazar 2025-08-11 14:04:58 +02:00
parent 7916ae309e
commit b64a5880b9
2 changed files with 21 additions and 4 deletions

View file

@ -1,5 +1,5 @@
- name: restart smtpd
service:
name: smtpd
name: "{% if ansible_os_family == 'Alpine' %}smtpd{% else %}opensmtpd{% endif %}"
state: restarted
when: "'handler' not in ansible_skip_tags"