mirror of https://github.com/ceph/ceph-ansible.git
tests: update the system before deploying
Having a system up-to-date is usually a good idea. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/7117/head
parent
51bc8cb636
commit
3e87df5e8f
|
@ -13,6 +13,11 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
is_atomic: '{{ stat_ostree.stat.exists }}'
|
is_atomic: '{{ stat_ostree.stat.exists }}'
|
||||||
|
|
||||||
|
- name: update the system
|
||||||
|
command: dnf update -y
|
||||||
|
changed_when: false
|
||||||
|
when: not is_atomic | bool
|
||||||
|
|
||||||
- name: get root mount information
|
- name: get root mount information
|
||||||
set_fact:
|
set_fact:
|
||||||
rootmount: "{{ ansible_facts['mounts']|json_query('[?mount==`/`]|[0]') }}"
|
rootmount: "{{ ansible_facts['mounts']|json_query('[?mount==`/`]|[0]') }}"
|
||||||
|
|
Loading…
Reference in New Issue