-- name: Remove package - Check if {{ package }} is installed
- shell: >
- "dpkg-query -W -f='${Status}' {{ package }} | grep 'install ok installed'"
- register: package_is_installed
- failed_when: no
- changed_when: no
- when: >
- ansible_distribution == 'Ubuntu'
- tags: remove-package
-