this vault setup for injective sensitive variables uses the approach described in https://docs.ansible.com/ansible/10/tips_tricks/ansible_tips_tricks.html#keep-vaulted-variables-safely-visible
16 lines
522 B
YAML
16 lines
522 B
YAML
- name: Ensure {{ collection }} collection directory exists
|
|
file:
|
|
path: "{{ alpina_svc_path }}/{{ collection }}"
|
|
state: directory
|
|
mode: "700"
|
|
|
|
- name: Deploy docker compose stacks for {{ collection }}
|
|
vars:
|
|
current_stack_name: "{{ stack }}"
|
|
current_stack_dest: "{{ alpina_svc_path }}/{{ collection }}/{{ stack }}"
|
|
current_stack_source: "{{ role_path }}/templates/{{ collection }}/{{ stack }}"
|
|
include_tasks: deploy_compose_stack.yml
|
|
loop: "{{ stacks }}"
|
|
loop_control:
|
|
loop_var: stack
|