Преглед изворни кода

Add clean cache role

pull/2723/head
Julian-Samuel Gebühr пре 3 година
родитељ
комит
ee187d6fde
2 измењених фајлова са 10 додато и 0 уклоњено
  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 Прегледај датотеку

@@ -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 Прегледај датотеку

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

Loading…
Откажи
Сачувај