Install new packages and remove old confs

This commit is contained in:
Joshua Boniface 2023-11-30 03:29:24 -05:00
parent 1e89a1440c
commit 9d2af41d3f
1 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,8 @@
apt:
name:
- pvc-daemon-node
- pvc-daemon-health
- pvc-daemon-worker
- pvc-daemon-api
- pvc-daemon-common
- pvc-client-cli
@ -11,8 +13,7 @@
# default provisioner script helper programs
- debootstrap
- rinse
state: latest
when: newhost is defined and newhost
state: present
register: apt_res
retries: 5
until: apt_res is success
@ -25,6 +26,15 @@
with_items:
- pvc.conf
- name: remove obsolete pvc daemon configurations
file:
dest: "/etc/pvc/{{ item }}"
state: absent
with_items:
- pvcnoded.yaml
- pvcapid.yaml
- autobackup.yaml
- name: install API SSL certificate file
copy:
content: "{{ pvc_api_ssl_cert }}"