30 lines
787 B
YAML
30 lines
787 B
YAML
|
---
|
||
|
- name: "Create {{ nginx_proxy_base_dir }} and it's contents"
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ item }}"
|
||
|
owner: root
|
||
|
group: root
|
||
|
state: directory
|
||
|
mode: '0644'
|
||
|
loop: "{{ nginx_proxy_folders }}"
|
||
|
|
||
|
- name: Copy extra files
|
||
|
ansible.builtin.copy:
|
||
|
"{{ item }} "
|
||
|
loop: "{{ nginx_proxy_copy_files }}"
|
||
|
|
||
|
- name: Copy template
|
||
|
ansible.builtin.template:
|
||
|
src: "{{ nginx_proxy_docker_compose_template }}"
|
||
|
dest: "{{ nginx_proxy_base_dir }}/docker-compose.yml"
|
||
|
mode: '0644'
|
||
|
|
||
|
- name: Fetch template
|
||
|
ansible.builtin.get_url:
|
||
|
dest: "{{ nginx_proxy_base_dir }}/nginx.tmpl"
|
||
|
url: "{{ nginx_proxy_nginx_tmpl_url }}"
|
||
|
|
||
|
- name: Start Nginx and generator
|
||
|
community.docker.docker_compose_v2:
|
||
|
project_src: "{{ nginx_proxy_base_dir }}"
|
||
|
state: present
|