Remove template validation
parent
6be44c7da8
commit
bee0cb9a66
|
@ -15,7 +15,6 @@
|
|||
template: >
|
||||
src=etc/nginx/nginx.conf.j2
|
||||
dest=/etc/nginx/nginx.conf
|
||||
validate= "nginx -t"
|
||||
notify: reload nginx
|
||||
|
||||
- name: FILE | Create /etc/nginx/helpers
|
||||
|
@ -33,7 +32,6 @@
|
|||
template: >
|
||||
src={{ item }}
|
||||
dest=/etc/nginx/helpers/{{ item | basename | regex_replace('\.j2$','') }}
|
||||
validate= "nginx -t"
|
||||
with_fileglob: '../templates/etc/nginx/helpers/*.j2'
|
||||
notify: reload nginx
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
template: >
|
||||
src=etc/nginx/sites-available/{{ item.template }}.j2
|
||||
dest=/etc/nginx/sites-available/{{ item.name if item.name is string else item.name[0] }}
|
||||
validate='nginx -t'
|
||||
with_items: nginx_vhosts
|
||||
notify: reload nginx
|
||||
when: item.delete is not defined or not item.delete
|
||||
|
|
Loading…
Reference in New Issue