Incident #10910 ยป fix-accounting-crap.yml
1 |
---
|
---|---|
2 |
- hosts: geoserver_prod_protectedareaimpactmaps:dataminer_prototypes:dataminer_servers:thredds_prod:workspace-repository-prod1.d4science.org |
3 |
remote_user: "{{ d4science_ansible_user | default('root') }}" |
4 |
become: '{{ d4science_ansible_become | default(False) }}' |
5 |
become_user: "{{ d4science_ansible_become_user | default('root') }}" |
6 |
gather_facts: False |
7 |
serial: 5 |
8 |
vars_files: |
9 |
- ../library/isti_vars/isti-global.yml |
10 |
|
11 |
tasks: |
12 |
- name: Stop the smartgears service |
13 |
become_user: gcube |
14 |
#shell: /home/gcube/stopContainer.sh
|
15 |
raw: /home/gcube/stopContainer.sh |
16 |
ignore_errors: True |
17 |
|
18 |
- name: Remove the accounting files and the log files |
19 |
become_user: gcube |
20 |
#shell: rm -fr /home/gcube/SmartGears/state/_d4science* /home/gcube/tomcat/logs/*2018*
|
21 |
raw: rm -fr /home/gcube/SmartGears/state/_d4science* /home/gcube/tomcat/logs/*2018* |
22 |
|
23 |
- name: Start the smartgears service |
24 |
become_user: gcube |
25 |
shell: /home/gcube/startContainer.sh |
26 |
ignore_errors: True |