2017-09-07 15:26:41 +00:00
|
|
|
#
|
2018-02-20 19:36:08 +00:00
|
|
|
# Tasks related to getting rid of s3fs (if it was previously installed)
|
2017-09-07 15:26:41 +00:00
|
|
|
#
|
2017-09-08 13:34:40 +00:00
|
|
|
|
2017-09-11 20:50:14 +00:00
|
|
|
- name: Check existence of matrix-s3fs service
|
2017-09-08 13:34:40 +00:00
|
|
|
stat: path="/etc/systemd/system/matrix-s3fs.service"
|
|
|
|
register: matrix_s3fs_service_stat
|
|
|
|
|
2017-09-07 15:26:41 +00:00
|
|
|
- name: Ensure matrix-s3fs is stopped
|
|
|
|
service: name=matrix-s3fs state=stopped daemon_reload=yes
|
|
|
|
register: stopping_result
|
2018-02-20 19:36:08 +00:00
|
|
|
when: "matrix_s3fs_service_stat.stat.exists"
|
2017-09-07 15:26:41 +00:00
|
|
|
|
|
|
|
- name: Ensure matrix-s3fs.service doesn't exist
|
|
|
|
file:
|
2017-09-08 13:34:40 +00:00
|
|
|
path: "/etc/systemd/system/matrix-s3fs.service"
|
2017-09-07 15:26:41 +00:00
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Ensure s3fs-credentials doesn't exist
|
|
|
|
file:
|
|
|
|
path: "{{ matrix_base_data_path }}/s3fs-credentials"
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Ensure S3fs Docker image doesn't exist
|
|
|
|
docker_image:
|
2018-08-08 06:17:18 +00:00
|
|
|
name: "{{ matrix_docker_image_s3fs }}"
|
2017-09-07 15:26:41 +00:00
|
|
|
state: absent
|