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
|
||||
group: root
|
||||
with_items:
|
||||
- '{{ nginx__conf_dir }}'
|
||||
- '{{ nginx__dir_etc }}'
|
||||
- '{{ nginx__confd_dir }}'
|
||||
- '{{ nginx__available_dir }}'
|
||||
- '{{ nginx__enabled_dir }}'
|
||||
|
@ -22,7 +22,7 @@
|
|||
notify: nginx | Restart Nginx
|
||||
copy:
|
||||
src: 'files/nginx.conf'
|
||||
dest: '{{ nginx__conf_dir }}/nginx.conf'
|
||||
dest: '{{ nginx__dir_etc }}/nginx.conf'
|
||||
mode: 'u=rw,go=r'
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -31,7 +31,7 @@
|
|||
notify: nginx | Restart Nginx
|
||||
copy:
|
||||
content: "{{ nginx__stream }}\n"
|
||||
dest: '{{ nginx__conf_dir }}/stream.conf'
|
||||
dest: '{{ nginx__dir_etc }}/stream.conf'
|
||||
mode: 'u=rw,go=r'
|
||||
owner: root
|
||||
group: root
|
||||
|
|
|
@ -11,4 +11,4 @@
|
|||
- name: Delete Nginx configuration
|
||||
file:
|
||||
state: absent
|
||||
path: '{{ nginx__conf_dir }}'
|
||||
path: '{{ nginx__dir_etc }}'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
nginx__conf_dir: '/etc/nginx'
|
||||
nginx__confd_dir: '{{ nginx__conf_dir }}/conf.d'
|
||||
nginx__available_dir: '{{ nginx__conf_dir }}/sites-available'
|
||||
nginx__enabled_dir: '{{ nginx__conf_dir }}/sites-enabled'
|
||||
nginx__snippets_dir: '{{ nginx__conf_dir }}/snippets'
|
||||
nginx__dir_etc: '/etc/nginx'
|
||||
|
||||
nginx__confd_dir: '{{ nginx__dir_etc }}/conf.d'
|
||||
nginx__available_dir: '{{ nginx__dir_etc }}/sites-available'
|
||||
nginx__enabled_dir: '{{ nginx__dir_etc }}/sites-enabled'
|
||||
nginx__snippets_dir: '{{ nginx__dir_etc }}/snippets'
|
||||
|
|
Loading…
Reference in a new issue