From 6cffab2840ad8746d4fef13afafe96759aee335c Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sat, 16 Sep 2023 14:34:38 +0000 Subject: [PATCH] fix: ignore the error on first podman installation --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 14bedf4..2f2ddfb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,10 +5,11 @@ - name: "Get Podman version" become: yes become_user: podman_rootless - ansible.builtin.shell: " XDG_RUNTIME_DIR=/run/user/2534 echo v$(podman --version | cut -d' ' -f 3)" + ansible.builtin.shell: "XDG_RUNTIME_DIR=/run/user/2534 echo v$(podman --version | cut -d' ' -f 3)" register: podman_active_version changed_when: false failed_when: false + ignore_errors: true when: podman_version_check|bool - name: "test"