]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: update the system before deploying
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 18 Mar 2022 13:41:40 +0000 (14:41 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 21 Mar 2022 06:02:01 +0000 (07:02 +0100)
Having a system up-to-date is usually a good idea.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 3e87df5e8fefb963da86a4ab87a5f555b89ea3e1)
(cherry picked from commit 5a1e8620bc08078c57e9455108f6d82cf3505185)

tests/functional/setup.yml

index 2173a5fa1f18fc846ec0a613a5fa9299141357e1..f8e2047d488a6561247c8aaf72a771d13233fae6 100644 (file)
       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]') }}"