ansible/roles/netdata/tasks/uninstall.yml

35 lines
966 B
YAML
Raw Normal View History

2021-01-23 18:45:20 -06:00
---
- name: uninstall | Prepping For Uninstalling Netdata
replace:
dest: "{{ netdata_source_dir }}/{{ netdata_uninstaller|basename }}"
regexp: 'rm -I -R "'
replace: 'rm -R "'
become: true
- name: uninstall | Prepping For Uninstalling Netdata
replace:
dest: "{{ netdata_source_dir }}/{{ netdata_uninstaller|basename }}"
regexp: 'rm -i "'
replace: 'rm "'
become: true
- name: uninstall | Uninstalling Netdata # noqa 301
command: "{{ netdata_uninstaller }} --force"
args:
chdir: "{{ netdata_source_dir }}"
become: true
- name: uninstall | Cleaning Up After Uninstalling Netdata
replace:
dest: "{{ netdata_source_dir }}/{{ netdata_uninstaller|basename }}"
regexp: 'rm -R "'
replace: 'rm -I -R "'
become: true
- name: uninstall | Cleaning Up After Uninstalling Netdata
replace:
dest: "{{ netdata_source_dir }}/{{ netdata_uninstaller|basename }}"
regexp: 'rm "'
replace: 'rm -i "'
become: true