mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Moved blocks to include_tasks to raise performance. Deploy was really slow
This commit is contained in:
26
roles/web-app-mig/tasks/01_core.yml
Normal file
26
roles/web-app-mig/tasks/01_core.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: Load docker compose vars
|
||||
include_vars:
|
||||
file: roles/docker-compose/vars/docker-compose.yml
|
||||
name: mig_docker_compose
|
||||
|
||||
- name: Set roles volume variable
|
||||
set_fact:
|
||||
mig_roles_meta_volume: "{{ mig_docker_compose.docker_compose.directories.volumes }}/roles/"
|
||||
|
||||
- name: Set roles list variable
|
||||
set_fact:
|
||||
mig_roles_meta_list: "{{ mig_roles_meta_volume }}list.json"
|
||||
|
||||
- name: "load docker, proxy for '{{application_id}}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
|
||||
- name: Create tree
|
||||
command: "infinito build tree --no-signal --alarm-timeout 0 -s {{ mig_roles_meta_volume }}"
|
||||
when:
|
||||
- mig_build_data
|
||||
|
||||
- name: Create roles list
|
||||
command: "infinito build roles_list --no-signal --alarm-timeout 0 -o {{ mig_roles_meta_list }}"
|
||||
when:
|
||||
- mig_build_data
|
Reference in New Issue
Block a user