Task that optionally removes all the data and conf
This commit is contained in:
parent
c71160d59e
commit
82d224c5ab
|
@ -12,7 +12,8 @@ The most important variables are listed below:
|
||||||
thredds_install: True
|
thredds_install: True
|
||||||
thredds_upgrade: False
|
thredds_upgrade: False
|
||||||
thredds_version: 4.6.15
|
thredds_version: 4.6.15
|
||||||
thredds_data_content_dir: /data/thredds
|
thredds_force_data_reset: False
|
||||||
|
thredds_data_content_dir: /data/thredds_contents
|
||||||
thredds_server_name: 'Thredds instance'
|
thredds_server_name: 'Thredds instance'
|
||||||
thredds_logo_url: '/thredds/threddsIcon.gif'
|
thredds_logo_url: '/thredds/threddsIcon.gif'
|
||||||
thredds_logo_alt_text: '{{ thredds_server_name }}'
|
thredds_logo_alt_text: '{{ thredds_server_name }}'
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
---
|
---
|
||||||
thredds_install: True
|
thredds_install: True
|
||||||
thredds_upgrade: False
|
thredds_upgrade: False
|
||||||
|
thredds_force_data_reset: False
|
||||||
thredds_version: 4.6.15
|
thredds_version: 4.6.15
|
||||||
thredds_data_content_dir: /data/thredds
|
thredds_data_content_dir: /data/thredds_contents
|
||||||
thredds_server_name: 'Thredds instance'
|
thredds_server_name: 'Thredds instance'
|
||||||
thredds_logo_url: '/thredds/threddsIcon.gif'
|
thredds_logo_url: '/thredds/threddsIcon.gif'
|
||||||
thredds_logo_alt_text: '{{ thredds_server_name }}'
|
thredds_logo_alt_text: '{{ thredds_server_name }}'
|
||||||
|
|
|
@ -8,6 +8,15 @@
|
||||||
when: not thredds_install or thredds_upgrade
|
when: not thredds_install or thredds_upgrade
|
||||||
tags: [ 'thredds', 'tomcat' ]
|
tags: [ 'thredds', 'tomcat' ]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: Remove the Thredds data contents directory (ALL THE DATA WILL BE LOST)
|
||||||
|
file:
|
||||||
|
path: '{{ thredds_data_content_dir }}/thredds'
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
when: thredds_force_data_reset
|
||||||
|
tags: [ 'thredds', 'tomcat', 'thredds_data' ]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install some prerequisite deb packages
|
- name: Install some prerequisite deb packages
|
||||||
apt:
|
apt:
|
||||||
|
|
Loading…
Reference in New Issue