From 9e21aecf9702805a42de72813f7e293d0fe34363 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 9 Dec 2023 23:56:34 -0500 Subject: [PATCH] Ignore errors then check for PVC package This helps work around apt issues when running from the oneshot update-pvc-daemons playbook. On a new install, this will be OK. On an upgrade, the apt tasks will fail OK but then the verification that pvc-client-cli will ensure that things are actually sane before proceeding. --- roles/pvc/tasks/pvc/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/pvc/tasks/pvc/main.yml b/roles/pvc/tasks/pvc/main.yml index 7b1dbc4..a12f352 100644 --- a/roles/pvc/tasks/pvc/main.yml +++ b/roles/pvc/tasks/pvc/main.yml @@ -13,6 +13,7 @@ register: apt_res retries: 5 until: apt_res is success + ignore_errors: yes - name: install pvc packages (coordinators only) apt: @@ -26,6 +27,10 @@ register: apt_res retries: 5 until: apt_res is success + ignore_errors: yes + +- name: check if pvc-client-cli is installed + command: dpkg -l pvc-client-cli - name: install pvc daemon configuration template: