Avoid removal of old versions at all
We simply shouldn't do this here. Let's leave them hanging around unless removed in another way (e.g. in update-pvc-daemons)
This commit is contained in:
parent
97b1469a70
commit
73ad2a7751
|
@ -36,22 +36,6 @@
|
||||||
group: sudo
|
group: sudo
|
||||||
with_items:
|
with_items:
|
||||||
- pvc.conf
|
- pvc.conf
|
||||||
register: new_daemon_config
|
|
||||||
|
|
||||||
- name: remove obsolete pvc daemon configurations
|
|
||||||
file:
|
|
||||||
dest: "/etc/pvc/{{ item }}"
|
|
||||||
state: absent
|
|
||||||
with_items:
|
|
||||||
- pvcnoded.yaml
|
|
||||||
- pvcapid.yaml
|
|
||||||
- autobackup.yaml
|
|
||||||
# Only apply this task when the new daemon config has NOT changed.
|
|
||||||
# In practice, this means that the first time pvc.conf is written,
|
|
||||||
# the old configs will NOT be purged. Then, the next time this is
|
|
||||||
# run (presuming no fundamental changes happen to that config),
|
|
||||||
# they will be removed. Provides safety in case of a failed update.
|
|
||||||
when: not new_daemon_config.changed
|
|
||||||
|
|
||||||
- name: install API SSL certificate file
|
- name: install API SSL certificate file
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in New Issue