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]>
22 lines
647 B
YAML
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
|