Bladeren bron

Add clean cache role

pull/2723/head
Julian-Samuel Gebühr 3 jaren geleden
bovenliggende
commit
ee187d6fde
2 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. +4
    -0
      roles/custom/matrix-bot-matrix-registration-bot/tasks/clean_cache.yml
  2. +6
    -0
      roles/custom/matrix-bot-matrix-registration-bot/tasks/main.yml

+ 4
- 0
roles/custom/matrix-bot-matrix-registration-bot/tasks/clean_cache.yml Bestand weergeven

@@ -0,0 +1,4 @@
---

- name: Delete cache files
ansible.builtin.shell: "rm -rf {{ matrix_bot_matrix_registration_bot_data_path }}/*"

+ 6
- 0
roles/custom/matrix-bot-matrix-registration-bot/tasks/main.yml Bestand weergeven

@@ -18,3 +18,9 @@
block:
- when: not matrix_bot_matrix_registration_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"

- tags:
- bot-matrix-registration-bot-clean-cache
block:
- when: matrix_bot_matrix_registration_bot_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/clean_cache.yml"

Laden…
Annuleren
Opslaan