1 - name: Check uninstaller presence
3 path: "{{ item }}/netdata-uninstaller.sh"
6 - /opt/netdata/usr/libexec/netdata
7 register: uninstaller_presence
10 command: "{{ item }} --yes --force" # noqa 301
11 loop: "{{ uninstallers }}"
13 uninstallers: "{{ uninstaller_presence.results | selectattr('stat.exists') | map(attribute='invocation.module_args.path') | list }}"