From c0e6b64379473f2d7e879a0429cf0e93013e0c9f 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) (cherry picked from commit 5a1e8620bc08078c57e9455108f6d82cf3505185) --- tests/functional/setup.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/functional/setup.yml b/tests/functional/setup.yml index 2173a5fa1f..f8e2047d48 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]') }}"