Task that optionally removes all the data and conf

This commit is contained in:
Andrea Dell'Amico 2021-06-12 14:29:09 +02:00
parent c71160d59e
commit 82d224c5ab
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 13 additions and 2 deletions

View File

@ -12,7 +12,8 @@ The most important variables are listed below:
thredds_install: True
thredds_upgrade: False
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_logo_url: '/thredds/threddsIcon.gif'
thredds_logo_alt_text: '{{ thredds_server_name }}'

View File

@ -1,8 +1,9 @@
---
thredds_install: True
thredds_upgrade: False
thredds_force_data_reset: False
thredds_version: 4.6.15
thredds_data_content_dir: /data/thredds
thredds_data_content_dir: /data/thredds_contents
thredds_server_name: 'Thredds instance'
thredds_logo_url: '/thredds/threddsIcon.gif'
thredds_logo_alt_text: '{{ thredds_server_name }}'

View File

@ -8,6 +8,15 @@
when: not thredds_install or thredds_upgrade
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:
- name: Install some prerequisite deb packages
apt: