19 lines
524 B
YAML
19 lines
524 B
YAML
---
|
|
# template domain config
|
|
# vars: ng_domain_secure (True)
|
|
# ng_domain_flags (['http2'])
|
|
# ng_domain_name (no default)
|
|
# ng_domain_root ('/usr/share/nginx/html')
|
|
# ng_domain_common_locations (True)
|
|
|
|
- name: domain locations directory
|
|
file:
|
|
path: "{{ nginx_location_mountpoint }}/{{ ng_domain_name }}"
|
|
state: directory
|
|
|
|
- name: template domain config
|
|
template:
|
|
src: domain.conf.j2
|
|
dest: "{{ nginx_config_mountpoint }}/{{ ng_domain_name }}.conf"
|
|
notify: restart nginx container
|