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
|
- 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue