From: Guillaume Abrioux Date: Fri, 1 Jun 2018 07:59:14 +0000 (+0200) Subject: ceph-ansible: followup on #1036 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1037%2Fhead;p=ceph-build.git 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 --- 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"