소스 검색

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"

불러오는 중...
취소
저장