mirror of
https://github.com/DO1JLR/ansible_role_nginx.git
synced 2024-08-16 16:19:48 +02:00
rename snippet vars
This commit is contained in:
parent
b8325fd754
commit
40b06cbf9a
2 changed files with 4 additions and 4 deletions
|
@ -15,8 +15,8 @@ nginx_sites: {}
|
||||||
# group Optional, for use with 'webhost' role
|
# group Optional, for use with 'webhost' role
|
||||||
# mode Optional, for use with 'webhost' role
|
# mode Optional, for use with 'webhost' role
|
||||||
|
|
||||||
|
nginx__snippet_path: 'files/nginx/snippets/'
|
||||||
snippet_files:
|
nginx__snippet_files:
|
||||||
- 'acmetool.snippet.conf'
|
- 'acmetool.snippet.conf'
|
||||||
- 'tls_parameters.snippet.conf'
|
- 'tls_parameters.snippet.conf'
|
||||||
|
|
||||||
|
|
|
@ -67,11 +67,11 @@
|
||||||
- name: Copy nginx snippet files
|
- name: Copy nginx snippet files
|
||||||
become: true
|
become: true
|
||||||
copy:
|
copy:
|
||||||
src: 'files/nginx/snippets/{{ item }}'
|
src: '{{ nginx__snippet_path }}{{ item }}'
|
||||||
dest: '/etc/nginx/snippets/{{ item }}'
|
dest: '/etc/nginx/snippets/{{ item }}'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 'u=rw,g=r,o=r'
|
mode: 'u=rw,g=r,o=r'
|
||||||
with_items: '{{ snippet_files }}'
|
with_items: '{{ nginx__snippet_files }}'
|
||||||
notify:
|
notify:
|
||||||
- systemctl reload nginx
|
- systemctl reload nginx
|
||||||
|
|
Loading…
Reference in a new issue