single bool for apache, postfix and dovecot
This commit is contained in:
parent
1e09dd96c8
commit
890a48f447
@ -1,5 +1,8 @@
|
||||
---
|
||||
ucs_custom_tls_enabled: False
|
||||
ucs_custom_tls_apache2_enabled: False
|
||||
ucs_custom_tls_dovecot_enabled: False
|
||||
ucs_custom_tls_postfix_enabled: False
|
||||
ucs_tls_certs_dir: /etc/pki/tls/certs
|
||||
ucs_tls_key_dir: /etc/pki/tls/private
|
||||
ucs_tls_cert_path: /etc/pki/tls/certs/mycert.pem
|
||||
|
@ -29,6 +29,7 @@
|
||||
- { path: apache2/ssl/certificate, value: "{{ ucs_tls_certs_dir }}/ucs.pem" }
|
||||
- { path: apache2/ssl/key, value: "{{ ucs_tls_key_dir }}/ucs.pem" }
|
||||
notify: __ucs_apache_restart
|
||||
when: ucs_custom_tls_apache2_enabled
|
||||
|
||||
- name: Set dovecot ucr vars
|
||||
ucr:
|
||||
@ -38,6 +39,7 @@
|
||||
- { path: mail/dovecot/ssl/certificate, value: "{{ ucs_tls_certs_dir }}/ucs.pem" }
|
||||
- { path: mail/dovecot/ssl/key, value: "{{ ucs_tls_key_dir }}/ucs.pem" }
|
||||
notify: __ucs_dovecot_restart
|
||||
when: ucs_custom_tls_dovecot_enabled
|
||||
|
||||
- name: Set postfix ucr vars
|
||||
ucr:
|
||||
@ -47,6 +49,7 @@
|
||||
- { path: mail/postfix/ssl/certificate, value: "{{ ucs_tls_certs_dir }}/ucs.pem" }
|
||||
- { path: mail/postfix/ssl/key, value: "{{ ucs_tls_key_dir }}/ucs.pem" }
|
||||
notify: __ucs_postfix_restart
|
||||
when: ucs_custom_tls_postfix_enabled
|
||||
become: True
|
||||
become_user: root
|
||||
when: ucs_custom_tls_enabled
|
||||
|
Loading…
Reference in New Issue
Block a user