2023-12-04 07:57:12 +00:00
|
|
|
- name: Copy docker-compose contents
|
|
|
|
ansible.builtin.copy:
|
2023-12-04 08:01:41 +00:00
|
|
|
src: files/basedir/
|
2023-12-04 08:15:08 +00:00
|
|
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}
|
2023-12-04 07:57:12 +00:00
|
|
|
owner: "{{ ansible_user }}"
|
|
|
|
mode: '0644'
|
|
|
|
tags:
|
|
|
|
- files
|
|
|
|
- test
|
|
|
|
|
|
|
|
- name: Create nginx dir
|
|
|
|
ansible.builtin.file:
|
2023-12-04 08:15:08 +00:00
|
|
|
path: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/nginx
|
2023-12-04 07:57:12 +00:00
|
|
|
state: directory
|
|
|
|
owner: "{{ ansible_user }}"
|
|
|
|
mode: '0755'
|
|
|
|
tags:
|
|
|
|
- dir
|
2023-12-04 07:59:22 +00:00
|
|
|
- test
|
2023-12-04 07:57:12 +00:00
|
|
|
|
|
|
|
- name: Create nginx config
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "nginx/elementweb.conf"
|
2023-12-04 08:15:08 +00:00
|
|
|
dest: /home/{{ ansible_user }}/docker_compose/{{ matrix_service }}/nginx/elementweb.conf
|
2023-12-04 07:57:12 +00:00
|
|
|
owner: "{{ ansible_user }}"
|
|
|
|
mode: '0644'
|
|
|
|
tags:
|
|
|
|
- test
|