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
Guillaume Abrioux 2022-03-18 14:41:40 +01:00
parent 51bc8cb636
commit 3e87df5e8f
1 changed files with 5 additions and 0 deletions

View File

@ -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]') }}"