From f81716396cd2df1dfcb396ef11149066cc223cc3 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 4 Aug 2018 23:31:40 +0200 Subject: [PATCH] add bool for custom tls --- defaults/main.yml | 1 + tasks/tls.yml | 1 + 2 files changed, 2 insertions(+) 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