matrix-docker-compose/ansible/roles/elementweb/tasks/main.yml

29 lines
682 B
YAML
Raw Normal View History

2023-12-04 07:57:12 +00:00
- name: Copy docker-compose contents
ansible.builtin.copy:
src: files/basedir/{{ item }}/
dest: /home/{{ ansible_user }}/docker_compose/{{ docker_compose }}
owner: "{{ ansible_user }}"
mode: '0644'
tags:
- files
- test
- name: Create nginx dir
ansible.builtin.file:
path: /home/{{ ansible_user }}/docker_compose/nginx
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"
dest: /home/{{ ansible_user }}/docker_compose/nginx/elementweb.conf
owner: "{{ ansible_user }}"
mode: '0644'
tags:
- test