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 <pabelanger@redhat.com>
| ... | ... |
@@ -10,11 +10,13 @@ |
| 10 | 10 |
path: "/var/log/apache2" |
| 11 | 11 |
file_type: any |
| 12 | 12 |
register: debian_suse_apache_logs |
| 13 |
+ |
|
| 13 | 14 |
- name: Dereference files |
| 14 | 15 |
stat: |
| 15 | 16 |
path: "{{ item.path }}"
|
| 16 | 17 |
with_items: "{{ debian_suse_apache_logs.files }}"
|
| 17 | 18 |
register: debian_suse_apache_deref_logs |
| 19 |
+ |
|
| 18 | 20 |
- name: Create hard links |
| 19 | 21 |
file: |
| 20 | 22 |
src: "{{ item.stat.lnk_source | default(item.stat.path) }}"
|
| ... | ... |
@@ -24,6 +26,7 @@ |
| 24 | 24 |
when: |
| 25 | 25 |
- item.stat.isreg or item.stat.islnk |
| 26 | 26 |
when: ansible_os_family in ('Debian', 'Suse')
|
| 27 |
+ no_log: true |
|
| 27 | 28 |
|
| 28 | 29 |
- name: Link apache logs on RedHat |
| 29 | 30 |
block: |
| ... | ... |
@@ -32,11 +35,13 @@ |
| 32 | 32 |
path: "/var/log/httpd" |
| 33 | 33 |
file_type: any |
| 34 | 34 |
register: redhat_apache_logs |
| 35 |
+ |
|
| 35 | 36 |
- name: Dereference files |
| 36 | 37 |
stat: |
| 37 | 38 |
path: "{{ item.path }}"
|
| 38 | 39 |
with_items: "{{ redhat_apache_logs.files }}"
|
| 39 | 40 |
register: redhat_apache_deref_logs |
| 41 |
+ |
|
| 40 | 42 |
- name: Create hard links |
| 41 | 43 |
file: |
| 42 | 44 |
src: "{{ item.stat.lnk_source | default(item.stat.path) }}"
|
| ... | ... |
@@ -46,6 +51,7 @@ |
| 46 | 46 |
when: |
| 47 | 47 |
- item.stat.isreg or item.stat.islnk |
| 48 | 48 |
when: ansible_os_family == 'Redhat' |
| 49 |
+ no_log: true |
|
| 49 | 50 |
|
| 50 | 51 |
- name: Ensure {{ stage_dir }}/apache_config apache_config exists
|
| 51 | 52 |
file: |