Merge pull request #2038 from major/fix-cmd-warning

Suppress yum/dnf/rpm command warnings
pull/2031/head
Sébastien Han 2017-10-12 18:46:52 +02:00 committed by GitHub
commit 9c3d749f7c
6 changed files with 18 additions and 0 deletions

View File

@ -610,6 +610,8 @@
- name: remove package dependencies on redhat - name: remove package dependencies on redhat
command: yum -y autoremove command: yum -y autoremove
args:
warn: no
when: when:
ansible_os_family == 'RedHat' and ansible_os_family == 'RedHat' and
ansible_pkg_mgr == "yum" and ansible_pkg_mgr == "yum" and
@ -617,6 +619,8 @@
- name: remove package dependencies on redhat again - name: remove package dependencies on redhat again
command: yum -y autoremove command: yum -y autoremove
args:
warn: no
when: when:
ansible_os_family == 'RedHat' and ansible_os_family == 'RedHat' and
ansible_pkg_mgr == "yum" and ansible_pkg_mgr == "yum" and
@ -624,6 +628,8 @@
- name: remove package dependencies on redhat - name: remove package dependencies on redhat
command: dnf -y autoremove command: dnf -y autoremove
args:
warn: no
when: when:
ansible_os_family == 'RedHat' and ansible_os_family == 'RedHat' and
ansible_pkg_mgr == "dnf" and ansible_pkg_mgr == "dnf" and
@ -631,6 +637,8 @@
- name: remove package dependencies on redhat again - name: remove package dependencies on redhat again
command: dnf -y autoremove command: dnf -y autoremove
args:
warn: no
when: when:
ansible_os_family == 'RedHat' and ansible_os_family == 'RedHat' and
ansible_pkg_mgr == "dnf" and ansible_pkg_mgr == "dnf" and

View File

@ -1,6 +1,8 @@
--- ---
- name: check ntp installation on atomic - name: check ntp installation on atomic
command: rpm -q chrony command: rpm -q chrony
args:
warn: no
register: ntp_pkg_query register: ntp_pkg_query
ignore_errors: true ignore_errors: true
changed_when: false changed_when: false

View File

@ -1,6 +1,8 @@
--- ---
- name: check ntp installation on redhat - name: check ntp installation on redhat
command: rpm -q ntp command: rpm -q ntp
args:
warn: no
register: ntp_pkg_query register: ntp_pkg_query
ignore_errors: true ignore_errors: true
changed_when: false changed_when: false

View File

@ -22,6 +22,8 @@
# Remove yum caches so yum doesn't get confused if we are reinstalling a different ceph version # Remove yum caches so yum doesn't get confused if we are reinstalling a different ceph version
- name: purge yum cache - name: purge yum cache
command: yum clean all command: yum clean all
args:
warn: no
changed_when: false changed_when: false
when: when:
ansible_pkg_mgr == 'yum' ansible_pkg_mgr == 'yum'

View File

@ -1,6 +1,8 @@
--- ---
- name: check ntp installation on atomic - name: check ntp installation on atomic
command: rpm -q chrony command: rpm -q chrony
args:
warn: no
register: ntp_pkg_query register: ntp_pkg_query
ignore_errors: true ignore_errors: true
changed_when: false changed_when: false

View File

@ -1,6 +1,8 @@
--- ---
- name: check ntp installation on redhat - name: check ntp installation on redhat
command: rpm -q ntp command: rpm -q ntp
args:
warn: no
register: ntp_pkg_query register: ntp_pkg_query
ignore_errors: true ignore_errors: true
changed_when: false changed_when: false