Files
Ansible/patchman-remove.yaml
T
JustinandClaude Opus 5.5 5752e877cb Remove patchman_client role and install playbook
Patchman has been uninstalled from all servers and patch.ki5bhv.com
taken out of the inventory. Keep patchman-remove.yaml for cleanup.

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

22 lines
647 B
YAML

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