--- # Removes patchman-client from every Ubuntu server (undoes the old # patchman_client role, removed from this repo). Leaves curl, jq and cron # installed since other things use them. - name: Remove patchman-client hosts: ubuntu_servers become: true tasks: - name: Remove patchman-client package (if installed from a repo) ansible.builtin.package: name: patchman-client state: absent - name: Remove patchman-client files ansible.builtin.file: path: "{{ item }}" state: absent loop: - /etc/cron.d/patchman-client - /usr/sbin/patchman-client - /etc/patchman