diff --git a/tasks/main.yml b/tasks/main.yml index d81fbe7..ee3ae72 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,6 +24,16 @@ - conf.d/10-ssl.conf notify: Restart dovecot +- name: Set selinux context to certificates + sefcontext: + target: '{{ item }}' + setype: dovecot_cert_t + state: present + with_items: + - /etc/lego/certificates/{{ postfix_myhostname }}.issuer.crt + - /etc/lego/certificates/{{ postfix_myhostname }}.crt + - /etc/lego/certificates/{{ postfix_myhostname }}.key + - name: Open Firewalld firewalld: service: imaps