Kaynağa Gözat

Add clean cache role

pull/2723/head
Julian-Samuel Gebühr 3 yıl önce
ebeveyn
işleme
ee187d6fde
2 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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"

Yükleniyor…
İptal
Kaydet