Skip to content
Snippets Groups Projects
Commit 30238689 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

fix: remove cache file only if legacy tools were found

parent 5754ec4c
No related branches found
No related tags found
No related merge requests found
Pipeline #2430 passed
......@@ -18,15 +18,22 @@
when: "ansible_facts['distribution'] == 'Debian'"
- name: cleanup legacy tools
file:
path: "{{ item }}"
state: absent
loop:
- "/usr/local/bin/checkit_tiff"
- "/usr/local/bin/fixit_tiff"
- "/home/{{ vault_service_user }}/.cache/SLUB_LZA_Reparaturtool.cache"
- "/etc/cit_tiff6_baseline_SLUB.cfg"
notify: restart repairtools
block:
- name: remove legacy tools
file:
path: "{{ item }}"
state: absent
loop:
- "/usr/local/bin/checkit_tiff"
- "/usr/local/bin/fixit_tiff"
- "/etc/cit_tiff6_baseline_SLUB.cfg"
register: remove_legacy_tools
- name: remove legacy cache file
file:
path: "/home/{{ vault_service_user }}/.cache/SLUB_LZA_Reparaturtool.cache"
state: absent
notify: restart repairtools
when: remove_legacy_tools.changed # remove cache file only if legacy tools were found
- name: install repairtool (package dependencies are encoded in the package)
apt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment