mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-16 03:29:01 +07:00
Move upstream templates to conf.d
This commit is contained in:
1 parent
463ce45105
commit
36652f4742
3 files changed
+2
-2
No files matched your search
+2
-2
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
- name: TEMPLATE | Deploy PHP upstream to Nginx
|
- name: TEMPLATE | Deploy PHP upstream to Nginx
|
||||||
template:
|
template:
|
||||||
src: "etc/nginx/upstream/php.conf.j2"
|
src: "etc/nginx/conf.d/php.conf.j2"
|
||||||
dest: "{{ nginx_etc_dir }}/conf.d/php.conf"
|
dest: "{{ nginx_etc_dir }}/conf.d/php.conf"
|
||||||
when: nginx_php | length > 0
|
when: nginx_php | length > 0
|
||||||
notify: reload nginx
|
notify: reload nginx
|
||||||
|
|
||||||
- name: TEMPLATE | Deploy other upstreams
|
- name: TEMPLATE | Deploy other upstreams
|
||||||
template:
|
template:
|
||||||
src: "etc/nginx/upstream/upstream.conf.j2"
|
src: "etc/nginx/conf.d/_upstream.conf.j2"
|
||||||
dest: "{{ nginx_etc_dir }}/conf.d/upstream-{{ item.name }}.conf"
|
dest: "{{ nginx_etc_dir }}/conf.d/upstream-{{ item.name }}.conf"
|
||||||
with_items: "{{ nginx_upstreams }}"
|
with_items: "{{ nginx_upstreams }}"
|
||||||
when: item.state is not defined or item.state == 'present'
|
when: item.state is not defined or item.state == 'present'
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user