]> 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>
Sun, 20 Mar 2022 07:13:38 +0000 (08:13 +0100)
Having a system up-to-date is usually a good idea.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
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]') }}"