You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
631 B
YAML
19 lines
631 B
YAML
2 years ago
|
- name: Deploy nginx configs
|
||
|
template:
|
||
|
src: "{{item.src}}"
|
||
|
dest: "{{item.dst}}"
|
||
|
loop:
|
||
|
- { src: 'nginx/proxy.conf.template', dst: '/opt/netmaker_server/nginx/conf/conf.d/proxy.conf' }
|
||
|
- { src: 'nginx/passthrough.conf.template', dst: '/opt/netmaker_server/nginx/conf/stream.d/passthrough.conf' }
|
||
|
|
||
2 years ago
|
- name: Start nginx service
|
||
|
command: "docker-compose --project-directory /opt/netmaker_server/ up -d nginx"
|
||
|
register: command
|
||
|
failed_when: command.rc != 0
|
||
|
|
||
|
- name: Waiting for nginx to accept connections
|
||
|
ansible.builtin.wait_for:
|
||
|
host: "{{ inventory_hostname }}"
|
||
|
port: 51820
|
||
|
state: started
|