mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 15:39:57 +00:00
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:
@@ -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
|
||||||
|
|||||||
5
roles/web-app-mig/tasks/02_cleanup.yml
Normal file
5
roles/web-app-mig/tasks/02_cleanup.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: "Cleanup MIG roles directory (remove all contents safely)"
|
||||||
|
file:
|
||||||
|
path: "{{ MIG_ROLES_DIRECTORY }}"
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
Reference in New Issue
Block a user