From 9408bf709cc44a994682c2e1c5b828ae67ca335b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Dec 2023 01:40:56 -0500 Subject: [PATCH] Only install pvcapid on coordinators There should be no reason for the API to be installed on non-coordinator hosts, so separate it out. --- roles/pvc/tasks/pvc/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/roles/pvc/tasks/pvc/main.yml b/roles/pvc/tasks/pvc/main.yml index f30b12d..8f9f164 100644 --- a/roles/pvc/tasks/pvc/main.yml +++ b/roles/pvc/tasks/pvc/main.yml @@ -1,19 +1,28 @@ --- -- name: install pvc packages +- name: install pvc packages (all) apt: name: - pvc-daemon-node - pvc-daemon-health - pvc-daemon-worker - - pvc-daemon-api - pvc-daemon-common - pvc-client-cli - ethtool - jq - # default provisioner script helper programs + state: present + register: apt_res + retries: 5 + until: apt_res is success + +- name: install pvc packages (coordinators only) + apt: + name: + - pvc-daemon-api + # default provisioner script helper programs (pvcworkerd) - debootstrap - rinse state: present + when: is_coordinator register: apt_res retries: 5 until: apt_res is success