--- # Removes patchman-client from every Ubuntu server: undoes patchman-client.yaml # (roles/patchman_client). Leaves curl, jq and cron installed since other # things use them. Hosts stay listed on the Patchman server until deleted there. - 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