diff --git a/defaults/main.yml b/defaults/main.yml index 2e25e7e..2aea616 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,5 @@ --- +ucs_custom_tls_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 diff --git a/tasks/tls.yml b/tasks/tls.yml index ffd47b3..ad4e451 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -49,3 +49,4 @@ notify: __ucs_postfix_restart become: True become_user: root + when: ucs_custom_tls_enabled