Update certificate path for lego
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-01-04 01:32:01 +01:00
parent 2aaaf30ea8
commit 5e69465772
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 68 additions and 63 deletions

55
tasks/server.yml Normal file
View file

@ -0,0 +1,55 @@
---
#- name: Install Certificat
# include_role:
# name: certbot
# vars:
# certbot_certname: "{{ postfix_myhostname }}"
# when:
# - postfix_mydestination is defined
# register: certificat_changed
- name: Include tasks for postgrey
include_tasks: postgrey.yml
when:
- postfix_mydestination is defined
- name: Include tasks for OpenDKM
include_tasks: opendkim.yml
when:
- postfix_mydestination is defined
- name: Include tasks for OpenDMARC
include_tasks: opendmarc.yml
when:
- postfix_mydestination is defined
- name: Include dovecot role
include_role:
name: dovecot
when:
- postfix_mydestination is defined
#- name: Restart postfix after certificat installation
# service:
# name: postfix
# status: restarted
# when:
# - certificat_changed is changed
- name: Open Firewalld
firewalld:
service: smtp
permanent: true
state: enabled
immediate: true
when:
- postfix_mydestination is defined
- name: Open Firewalld
firewalld:
service: smtp-submission
permanent: true
state: enabled
immediate: true
when:
- postfix_mydestination is defined