Rename a var
This commit is contained in:
parent
fc2ec0c25e
commit
d464f7100c
3 changed files with 10 additions and 9 deletions
|
@ -12,7 +12,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
with_items:
|
with_items:
|
||||||
- '{{ nginx__conf_dir }}'
|
- '{{ nginx__dir_etc }}'
|
||||||
- '{{ nginx__confd_dir }}'
|
- '{{ nginx__confd_dir }}'
|
||||||
- '{{ nginx__available_dir }}'
|
- '{{ nginx__available_dir }}'
|
||||||
- '{{ nginx__enabled_dir }}'
|
- '{{ nginx__enabled_dir }}'
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
notify: nginx | Restart Nginx
|
notify: nginx | Restart Nginx
|
||||||
copy:
|
copy:
|
||||||
src: 'files/nginx.conf'
|
src: 'files/nginx.conf'
|
||||||
dest: '{{ nginx__conf_dir }}/nginx.conf'
|
dest: '{{ nginx__dir_etc }}/nginx.conf'
|
||||||
mode: 'u=rw,go=r'
|
mode: 'u=rw,go=r'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
notify: nginx | Restart Nginx
|
notify: nginx | Restart Nginx
|
||||||
copy:
|
copy:
|
||||||
content: "{{ nginx__stream }}\n"
|
content: "{{ nginx__stream }}\n"
|
||||||
dest: '{{ nginx__conf_dir }}/stream.conf'
|
dest: '{{ nginx__dir_etc }}/stream.conf'
|
||||||
mode: 'u=rw,go=r'
|
mode: 'u=rw,go=r'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
- name: Delete Nginx configuration
|
- name: Delete Nginx configuration
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: '{{ nginx__conf_dir }}'
|
path: '{{ nginx__dir_etc }}'
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
nginx__conf_dir: '/etc/nginx'
|
nginx__dir_etc: '/etc/nginx'
|
||||||
nginx__confd_dir: '{{ nginx__conf_dir }}/conf.d'
|
|
||||||
nginx__available_dir: '{{ nginx__conf_dir }}/sites-available'
|
nginx__confd_dir: '{{ nginx__dir_etc }}/conf.d'
|
||||||
nginx__enabled_dir: '{{ nginx__conf_dir }}/sites-enabled'
|
nginx__available_dir: '{{ nginx__dir_etc }}/sites-available'
|
||||||
nginx__snippets_dir: '{{ nginx__conf_dir }}/snippets'
|
nginx__enabled_dir: '{{ nginx__dir_etc }}/sites-enabled'
|
||||||
|
nginx__snippets_dir: '{{ nginx__dir_etc }}/snippets'
|
||||||
|
|
Loading…
Reference in a new issue