]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: followup on #1036 1037/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 1 Jun 2018 07:59:14 +0000 (09:59 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 1 Jun 2018 07:59:14 +0000 (09:59 +0200)
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 <gabrioux@redhat.com>
scripts/build_utils.sh

index a5ef16cc688663adb353d19c17f67b2af8173b59..78c10cc279c0a45d2f4fdeb096deed2a1a55183c 100644 (file)
@@ -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"