From 9519dd899592a841f19d0a5035ed9d16b7c980ac Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 18 Mar 2022 14:41:40 +0100 Subject: [PATCH] tests: update the system before deploying Having a system up-to-date is usually a good idea. Signed-off-by: Guillaume Abrioux (cherry picked from commit 3e87df5e8fefb963da86a4ab87a5f555b89ea3e1) --- tests/functional/setup.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/functional/setup.yml b/tests/functional/setup.yml index 2173a5fa1..f8e2047d4 100644 --- a/tests/functional/setup.yml +++ b/tests/functional/setup.yml @@ -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]') }}"