diff --git a/ansible/roles/geoserver/tasks/geoserver.yml b/ansible/roles/geoserver/tasks/geoserver.yml index e5930334f..b0edd7d3f 100644 --- a/ansible/roles/geoserver/tasks/geoserver.yml +++ b/ansible/roles/geoserver/tasks/geoserver.yml @@ -27,7 +27,7 @@ blockinfile: path={{tomcat_conf}} marker="# {mark} Configure Geoserver/GWC data folder / (Ansible managed)" - block='JAVA_OPTS="${JAVA_OPTS} -DGEOSERVER_DATA_DIR={{data_dir}}/geoserver_data_dir -DGEOWEBCACHE_CACHE_DIR={{data_dir}}/geoserver_data_dir/gwc"' + block='JAVA_OPTS="${JAVA_OPTS} -DGEOSERVER_CSRF_WHITELIST={{ geoserver_hostname }} -DGEOSERVER_DATA_DIR={{data_dir}}/geoserver_data_dir -DGEOWEBCACHE_CACHE_DIR={{data_dir}}/geoserver_data_dir/gwc"' backup=yes notify: - restart tomcat