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>
- 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"