Files
Ansible/patchman-remove.yaml
T
JustinandClaude Opus 5.5 4aeb08ab1f Add patchman-remove playbook; re-enable nightly update and reboot cron jobs
- patchman-remove.yaml: uninstall patchman-client from ubuntu_servers
  (cron entry, script, /etc/patchman); leaves curl/jq/cron in place
- crontab.txt: uncomment the 2:00 update.yaml and 7:00 reboot.yaml jobs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 20:51:31 -06:00

22 lines
700 B
YAML

---
# 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