Only install pvcapid on coordinators

There should be no reason for the API to be installed on non-coordinator
hosts, so separate it out.
This commit is contained in:
Joshua Boniface 2023-12-01 01:40:56 -05:00
parent 15fc3261de
commit 9408bf709c
1 changed files with 12 additions and 3 deletions

View File

@ -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