Skip to content

Commit

Permalink
tests: update the system before deploying
Browse files Browse the repository at this point in the history
Having a system up-to-date is usually a good idea.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits committed Mar 20, 2022
1 parent 51bc8cb commit 3e87df5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
set_fact:
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
set_fact:
rootmount: "{{ ansible_facts['mounts']|json_query('[?mount==`/`]|[0]') }}"
Expand Down

0 comments on commit 3e87df5

Please sign in to comment.