mirror of https://github.com/ceph/ceph-ansible.git
tests: force rpm pkg upgrade
Due to a bug with the rpm version present in the current stream8 vagrant image,
we have to make sure it is first upgraded to the latest version.
(cherry picked from commit b87f214a96
)
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
stable-6.0-ceph-volume-tests
parent
99f07d4190
commit
8b9abfcc7e
|
@ -5,6 +5,21 @@
|
||||||
tasks:
|
tasks:
|
||||||
- import_tasks: ../../raw_install_python.yml
|
- import_tasks: ../../raw_install_python.yml
|
||||||
|
|
||||||
|
- name: check if it is Atomic host
|
||||||
|
stat: path=/run/ostree-booted
|
||||||
|
register: stat_ostree
|
||||||
|
check_mode: no
|
||||||
|
|
||||||
|
- name: set fact for using Atomic host
|
||||||
|
set_fact:
|
||||||
|
is_atomic: '{{ stat_ostree.stat.exists }}'
|
||||||
|
|
||||||
|
- name: force rpm pkg upgrade
|
||||||
|
package:
|
||||||
|
name: rpm
|
||||||
|
state: latest
|
||||||
|
when: not is_atomic | bool
|
||||||
|
|
||||||
- hosts: osds
|
- hosts: osds
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: yes
|
become: yes
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
is_atomic: '{{ stat_ostree.stat.exists }}'
|
is_atomic: '{{ stat_ostree.stat.exists }}'
|
||||||
|
|
||||||
|
- name: force rpm pkg upgrade
|
||||||
|
package:
|
||||||
|
name: rpm
|
||||||
|
state: latest
|
||||||
|
when: not is_atomic | bool
|
||||||
|
|
||||||
- name: update the system
|
- name: update the system
|
||||||
command: dnf update -y
|
command: dnf update -y
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
Loading…
Reference in New Issue