Add cleanup task for MIG roles directory and restructure build_data tasks

Conversation: https://chatgpt.com/share/6926bece-332c-800f-a5f6-b76fe8cb42fa
This commit is contained in:
2025-11-26 09:48:36 +01:00
parent 9cbb74b7c8
commit 254a685b05
3 changed files with 9 additions and 2 deletions

View File

@@ -10,8 +10,10 @@
docker_compose_flush_handlers: true docker_compose_flush_handlers: true
docker_pull_git_repository: true docker_pull_git_repository: true
- name: Build data (single async task) - include_tasks: 02_cleanup.yml
include_tasks: 02_build_data.yml when: MODE_CLEANUP | bool
- include_tasks: 03_build_data.yml
when: MIG_BUILD_DATA | bool when: MIG_BUILD_DATA | bool
- include_tasks: utils/run_once.yml - include_tasks: utils/run_once.yml

View File

@@ -0,0 +1,5 @@
- name: "Cleanup MIG roles directory (remove all contents safely)"
file:
path: "{{ MIG_ROLES_DIRECTORY }}"
state: directory
mode: "0755"