added cleanup task to some states

This commit is contained in:
Paul 2022-11-08 11:07:43 +01:00
parent 286cfa2ab0
commit 37f967003f
4 changed files with 26 additions and 2 deletions

View File

@ -14,3 +14,9 @@ coronafana-binary-symlink:
- target: {{ coronafana.release_dir }}/coronafana-{{ coronafana.version }}
- require:
- archive: coronafana-archive-extract
coronafana-cleanup:
software.cleanup:
- name: coronafana
- path: {{ coronafana.release_dir }}
- version: "{{ coronafana.version }}"

View File

@ -17,4 +17,10 @@ dip-binary-symlink:
- require:
- archive: dip-archive-extract
- watch_in:
- service: dip-service
- service: dip-service
dip-cleanup:
software.cleanup:
- name: dip
- path: {{ dip.release_dir }}
- version: "{{ dip.version }}"

View File

@ -14,3 +14,9 @@ fuelprices-binary-symlink:
- target: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
- require:
- archive: fuelprices-archive-extract
fuelprices-cleanup:
software.cleanup:
- name: fuelprices
- path: {{ fuelprices.release_dir }}
- version: "{{ fuelprices.version }}"

View File

@ -13,4 +13,10 @@ weather-binary-symlink:
- name: {{ weather.install_dir }}/weather
- target: {{ weather.release_dir }}/weather-{{ weather.version }}
- require:
- archive: weather-archive-extract
- archive: weather-archive-extract
weather-cleanup:
software.cleanup:
- name: weather
- path: {{ weather.release_dir }}
- version: "{{ weather.version }}"