From 9d2af41d3fbeca62d1a82bd3af1bd0b16585d4cc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 30 Nov 2023 03:29:24 -0500 Subject: [PATCH] Install new packages and remove old confs --- roles/pvc/tasks/pvc/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/roles/pvc/tasks/pvc/main.yml b/roles/pvc/tasks/pvc/main.yml index d359d02..f30b12d 100644 --- a/roles/pvc/tasks/pvc/main.yml +++ b/roles/pvc/tasks/pvc/main.yml @@ -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 }}"