forked from ISTI-ansible-roles/ansible-roles
Give the gcube user the possibility to write into the nginx root directory.
This commit is contained in:
parent
0e6d107a50
commit
3ccfd6424a
|
@ -11,3 +11,4 @@ smartgears_tomcat_manager_access_acls:
|
|||
- { policy: 'allow', address: '0.0.0.0/0' }
|
||||
|
||||
smartgears_nginx_expose_tomcat_logs: False
|
||||
smartgears_nginx_rw_html_root: False
|
||||
|
|
|
@ -32,3 +32,10 @@
|
|||
notify: Reload nginx
|
||||
tags: [ 'nginx', 'virtualhost' ]
|
||||
|
||||
- name: Give the smartgears user access to the document root, and create it if needed
|
||||
file: dest={{ item.web_document_root}} state=directory owner={{ item.user }} group={{ item.user }} mode=0755
|
||||
with_items: '{{ tomcat_m_instances }}'
|
||||
when: smartgears_nginx_rw_html_root
|
||||
notify: Reload nginx
|
||||
tags: [ 'nginx', 'virtualhost', 'web_root' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue