47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
- name: Copy docker-compose contents
|
|
ansible.builtin.copy:
|
|
src: files/basedir/
|
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}
|
|
owner: "{{ ansible_user }}"
|
|
mode: '0644'
|
|
tags:
|
|
- files
|
|
- test
|
|
|
|
- name: Create container .env
|
|
ansible.builtin.template:
|
|
src: "docker/.env.j2"
|
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/.env
|
|
owner: "{{ ansible_user }}"
|
|
mode: '0644'
|
|
tags:
|
|
- docker
|
|
- env
|
|
|
|
- name: Create nginx dir
|
|
ansible.builtin.file:
|
|
path: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/nginx
|
|
state: directory
|
|
owner: "{{ ansible_user }}"
|
|
mode: '0755'
|
|
tags:
|
|
- dir
|
|
- test
|
|
|
|
- name: Create nginx config
|
|
ansible.builtin.template:
|
|
src: "nginx/elementweb.conf"
|
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/nginx/elementweb.conf
|
|
owner: "{{ ansible_user }}"
|
|
mode: '0644'
|
|
tags:
|
|
- test
|
|
|
|
- name: Create elementweb config
|
|
ansible.builtin.template:
|
|
src: "elementweb/config.json"
|
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/config.json
|
|
owner: "{{ ansible_user }}"
|
|
mode: '0644'
|
|
tags:
|
|
- config
|