From 704e6363cff8fb390459849984177c2daf7a73a6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Aug 2021 10:32:03 +0300 Subject: add "failed_when: no" where appropriate --- roles/apt/tasks/main.yml | 1 + roles/docker/tasks/main.yml | 1 + roles/flatpak/tasks/main.yml | 1 + roles/pacman/tasks/main.yml | 1 + roles/snap/tasks/main.yml | 1 + roles/vagrant/tasks/main.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index dd56a43..8758fce 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -2,6 +2,7 @@ command: apt-get --version register: apt_version changed_when: no + failed_when: no ignore_errors: yes - when: apt_version.rc == 0 diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 2b0d508..5f6a35f 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -2,6 +2,7 @@ command: docker --version register: docker_version changed_when: no + failed_when: no ignore_errors: yes - name: Clean up Docker data diff --git a/roles/flatpak/tasks/main.yml b/roles/flatpak/tasks/main.yml index 80a84ff..1b51c5d 100644 --- a/roles/flatpak/tasks/main.yml +++ b/roles/flatpak/tasks/main.yml @@ -2,6 +2,7 @@ command: flatpak --version register: flatpak_version changed_when: no + failed_when: no ignore_errors: yes - when: flatpak_version.rc == 0 diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml index 8e20aa5..64f2e4b 100644 --- a/roles/pacman/tasks/main.yml +++ b/roles/pacman/tasks/main.yml @@ -2,6 +2,7 @@ command: pacman --version register: pacman_version changed_when: no + failed_when: no ignore_errors: yes - when: pacman_version.rc == 0 diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml index 78a9afd..0be58cf 100644 --- a/roles/snap/tasks/main.yml +++ b/roles/snap/tasks/main.yml @@ -2,6 +2,7 @@ command: snap --version register: snap_version changed_when: no + failed_when: no ignore_errors: yes - become: yes diff --git a/roles/vagrant/tasks/main.yml b/roles/vagrant/tasks/main.yml index f0efdbf..52951e1 100644 --- a/roles/vagrant/tasks/main.yml +++ b/roles/vagrant/tasks/main.yml @@ -2,6 +2,7 @@ command: vagrant --version register: vagrant_version changed_when: no + failed_when: no ignore_errors: yes - when: vagrant_version.rc == 0 -- cgit v1.2.3