mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #2038 from major/fix-cmd-warning
Suppress yum/dnf/rpm command warningspull/2031/head
commit
9c3d749f7c
|
@ -610,6 +610,8 @@
|
|||
|
||||
- name: remove package dependencies on redhat
|
||||
command: yum -y autoremove
|
||||
args:
|
||||
warn: no
|
||||
when:
|
||||
ansible_os_family == 'RedHat' and
|
||||
ansible_pkg_mgr == "yum" and
|
||||
|
@ -617,6 +619,8 @@
|
|||
|
||||
- name: remove package dependencies on redhat again
|
||||
command: yum -y autoremove
|
||||
args:
|
||||
warn: no
|
||||
when:
|
||||
ansible_os_family == 'RedHat' and
|
||||
ansible_pkg_mgr == "yum" and
|
||||
|
@ -624,6 +628,8 @@
|
|||
|
||||
- name: remove package dependencies on redhat
|
||||
command: dnf -y autoremove
|
||||
args:
|
||||
warn: no
|
||||
when:
|
||||
ansible_os_family == 'RedHat' and
|
||||
ansible_pkg_mgr == "dnf" and
|
||||
|
@ -631,6 +637,8 @@
|
|||
|
||||
- name: remove package dependencies on redhat again
|
||||
command: dnf -y autoremove
|
||||
args:
|
||||
warn: no
|
||||
when:
|
||||
ansible_os_family == 'RedHat' and
|
||||
ansible_pkg_mgr == "dnf" and
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
- name: check ntp installation on atomic
|
||||
command: rpm -q chrony
|
||||
args:
|
||||
warn: no
|
||||
register: ntp_pkg_query
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
- name: check ntp installation on redhat
|
||||
command: rpm -q ntp
|
||||
args:
|
||||
warn: no
|
||||
register: ntp_pkg_query
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
# Remove yum caches so yum doesn't get confused if we are reinstalling a different ceph version
|
||||
- name: purge yum cache
|
||||
command: yum clean all
|
||||
args:
|
||||
warn: no
|
||||
changed_when: false
|
||||
when:
|
||||
ansible_pkg_mgr == 'yum'
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
- name: check ntp installation on atomic
|
||||
command: rpm -q chrony
|
||||
args:
|
||||
warn: no
|
||||
register: ntp_pkg_query
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
- name: check ntp installation on redhat
|
||||
command: rpm -q ntp
|
||||
args:
|
||||
warn: no
|
||||
register: ntp_pkg_query
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in New Issue