Give the gcube user the possibility to write into the nginx root directory.

This commit is contained in:
Andrea Dell'Amico 2018-05-02 12:00:57 +02:00
parent 0e6d107a50
commit 3ccfd6424a
2 changed files with 8 additions and 0 deletions

View File

@ -11,3 +11,4 @@ smartgears_tomcat_manager_access_acls:
- { policy: 'allow', address: '0.0.0.0/0' } - { policy: 'allow', address: '0.0.0.0/0' }
smartgears_nginx_expose_tomcat_logs: False smartgears_nginx_expose_tomcat_logs: False
smartgears_nginx_rw_html_root: False

View File

@ -32,3 +32,10 @@
notify: Reload nginx notify: Reload nginx
tags: [ 'nginx', 'virtualhost' ] 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' ]