geoserver: options to move the log directory in another place.

This commit is contained in:
Andrea Dell'Amico 2017-10-24 13:47:18 +02:00
parent 29c3b9357a
commit aa4bc93e36
2 changed files with 7 additions and 0 deletions

View File

@ -9,5 +9,7 @@ geoserver_download_url: 'http://sourceforge.net/projects/geoserver/files/GeoServ
geoserver_additional_jars: False
geoserver_download_directory: /srv/geoserver
geoserver_create_data_dir: True
geoserver_data_directory: /srv/geoserver_data
geoserver_log_directory: /var/log/geoserver

View File

@ -10,6 +10,11 @@
- name: Create the Geoserver data directory
file: path={{ geoserver_data_directory }} state=directory owner={{ item.user }} group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
when: geoserver_create_data_dir
- name: Create the Geoserver log directory
file: path={{ geoserver_log_directory }} state=directory owner={{ item.user }} group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
- name: Download the Geoserver file distribution
unarchive: copy=no src={{ geoserver_download_url }} dest={{ geoserver_download_directory }} creates={{ geoserver_download_directory }}/geoserver.war validate_certs=False