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>
(cherry picked from commit 3e87df5)
(cherry picked from commit 5a1e862)
  • Loading branch information
guits committed Mar 21, 2022
1 parent de447d1 commit c0e6b64
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 c0e6b64

Please sign in to comment.