From 7e6acb1c1ed65a48bc4e52ac292161726316ed58 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 1 Jun 2018 09:59:14 +0200 Subject: [PATCH] ceph-ansible: followup on #1036 these tasks are producing some useless output showing error on debian based distribution. Let's add a condition to avoid this. Signed-off-by: Guillaume Abrioux --- scripts/build_utils.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index a5ef16cc..78c10cc2 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -732,14 +732,17 @@ write_collect_logs_playbook() { - name: get yum repoinfo result command: yum repoinfo failed_when: false + when: ansible_distribution == 'CentOS' - name: get date result command: date failed_when: false + when: ansible_distribution == 'CentOS' - name: get yum check-update result command: yum check-update failed_when: false + when: ansible_distribution == 'CentOS' - name: find ceph logs command: find /var/log/ceph -name "{{ cluster|default('ceph') }}*.log" -- 2.47.3