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: apt:
name: name:
- pvc-daemon-node - pvc-daemon-node
- pvc-daemon-health
- pvc-daemon-worker
- pvc-daemon-api - pvc-daemon-api
- pvc-daemon-common - pvc-daemon-common
- pvc-client-cli - pvc-client-cli
@ -11,8 +13,7 @@
# default provisioner script helper programs # default provisioner script helper programs
- debootstrap - debootstrap
- rinse - rinse
state: latest state: present
when: newhost is defined and newhost
register: apt_res register: apt_res
retries: 5 retries: 5
until: apt_res is success until: apt_res is success
@ -25,6 +26,15 @@
with_items: with_items:
- pvc.conf - 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 - name: install API SSL certificate file
copy: copy:
content: "{{ pvc_api_ssl_cert }}" content: "{{ pvc_api_ssl_cert }}"