From 1093a4609b03536b66447daebd93196c621b7b45 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 6 Mar 2024 21:22:50 -0600 Subject: [PATCH] Add apache_ssl_no_log variable so users can log output for debugging. --- README.md | 4 ++++ defaults/main.yml | 1 + tasks/configure-Debian.yml | 2 +- tasks/configure-RedHat.yml | 2 +- tasks/configure-Suse.yml | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4a27f56..85b2ecc 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ No SSL vhosts are configured by default, but you can add them using the same pat Other SSL directives can be managed with other SSL-related role variables. + apache_ssl_no_log: true + +Whether to print SSL-related task output to the console when running the playbook. + apache_ssl_protocol: "All -SSLv2 -SSLv3" apache_ssl_cipher_suite: "AES256+EECDH:AES256+EDH" diff --git a/defaults/main.yml b/defaults/main.yml index 8bd8a29..c1ecb50 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,6 +37,7 @@ apache_vhosts_ssl: [] apache_ignore_missing_ssl_certificate: true +apache_ssl_no_log: true apache_ssl_protocol: "All -SSLv2 -SSLv3" apache_ssl_cipher_suite: "AES256+EECDH:AES256+EDH" diff --git a/tasks/configure-Debian.yml b/tasks/configure-Debian.yml index 0ac1828..a72bd71 100644 --- a/tasks/configure-Debian.yml +++ b/tasks/configure-Debian.yml @@ -29,7 +29,7 @@ stat: "path={{ item.certificate_file }}" register: apache_ssl_certificates with_items: "{{ apache_vhosts_ssl }}" - no_log: true + no_log: "{{ apache_ssl_no_log }}" - name: Add apache vhosts configuration. template: diff --git a/tasks/configure-RedHat.yml b/tasks/configure-RedHat.yml index 7de1321..6a46980 100644 --- a/tasks/configure-RedHat.yml +++ b/tasks/configure-RedHat.yml @@ -13,7 +13,7 @@ stat: path={{ item.certificate_file }} register: apache_ssl_certificates with_items: "{{ apache_vhosts_ssl }}" - no_log: true + no_log: "{{ apache_ssl_no_log }}" - name: Enable Apache mods. copy: diff --git a/tasks/configure-Suse.yml b/tasks/configure-Suse.yml index b7dfebc..9d21ee4 100644 --- a/tasks/configure-Suse.yml +++ b/tasks/configure-Suse.yml @@ -13,7 +13,7 @@ stat: path={{ item.certificate_file }} register: apache_ssl_certificates with_items: "{{ apache_vhosts_ssl }}" - no_log: true + no_log: "{{ apache_ssl_no_log }}" - name: Add apache vhosts configuration. template: