31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
|
- name: "Create {{ core_docker_compose_name }} directories."
|
||
|
ansible.builtin.file:
|
||
|
path: '{{ core_docker_compose_dirs_loop }}'
|
||
|
state: directory
|
||
|
owner: '{{ core_docker_compose_user }}'
|
||
|
group: '{{ core_docker_compose_group }}'
|
||
|
mode: "{{ core_docker_compose_dirs_mode }}"
|
||
|
loop: '{{ core_docker_compose_dirs }}'
|
||
|
loop_control:
|
||
|
loop_var: core_docker_compose_dirs_loop
|
||
|
when: core_docker_compose_mkdir
|
||
|
|
||
|
- name: "Create {{ core_docker_compose_name }} files"
|
||
|
ansible.builtin.template:
|
||
|
src: '{{ core_docker_compose_template_loop.src }}'
|
||
|
dest: '{{ core_docker_compose_template_loop.dest }}'
|
||
|
owner: '{{ core_docker_compose_user }}'
|
||
|
group: '{{ core_docker_compose_group }}'
|
||
|
mode: '{{ core_docker_compose_templates_mode }}'
|
||
|
loop: '{{ core_docker_compose_templates }}'
|
||
|
loop_control:
|
||
|
loop_var: '{{ core_docker_compose_template_loop }}'
|
||
|
when: core_docker_compose_cp_files
|
||
|
|
||
|
- name: "Create docker-compose.yml for {{ core_docker_compose_name }}"
|
||
|
ansible.builtin.template:
|
||
|
src: '{{ core_docker_compose_file.src }}'
|
||
|
dest: '{{ core_docker_compose_file.dest }}'
|
||
|
owner: '{{ core_docker_compose_compose_user }}'
|
||
|
group: '{{ core_docker_compose_compose_group }}'
|
||
|
mode: '0750'
|