From c9c39a4b043af60d06e71976dab218115ffdf524 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 21 Feb 2018 14:23:10 -0500 Subject: [PATCH] Make the apache-logs-conf role even less verbose Round 2 to add no_log to more things. Specific looping over stats, it is pretty noise in logs and doesn't seem to add any value. Change-Id: I580171e0061fa331f3ed510713f1ac7a1a6cb5ea Signed-off-by: Paul Belanger --- roles/apache-logs-conf/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/apache-logs-conf/tasks/main.yaml b/roles/apache-logs-conf/tasks/main.yaml index 339ee358be..bcc1353a87 100644 --- a/roles/apache-logs-conf/tasks/main.yaml +++ b/roles/apache-logs-conf/tasks/main.yaml @@ -10,11 +10,13 @@ path: "/var/log/apache2" file_type: any register: debian_suse_apache_logs + - name: Dereference files stat: path: "{{ item.path }}" with_items: "{{ debian_suse_apache_logs.files }}" register: debian_suse_apache_deref_logs + - name: Create hard links file: src: "{{ item.stat.lnk_source | default(item.stat.path) }}" @@ -24,6 +26,7 @@ when: - item.stat.isreg or item.stat.islnk when: ansible_os_family in ('Debian', 'Suse') + no_log: true - name: Link apache logs on RedHat block: @@ -32,11 +35,13 @@ path: "/var/log/httpd" file_type: any register: redhat_apache_logs + - name: Dereference files stat: path: "{{ item.path }}" with_items: "{{ redhat_apache_logs.files }}" register: redhat_apache_deref_logs + - name: Create hard links file: src: "{{ item.stat.lnk_source | default(item.stat.path) }}" @@ -46,6 +51,7 @@ when: - item.stat.isreg or item.stat.islnk when: ansible_os_family == 'Redhat' + no_log: true - name: Ensure {{ stage_dir }}/apache_config apache_config exists file: