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]>
This commit is contained in:
1 parent
6d5f532b2b
commit
4aeb08ab1f
2 files changed
+23
-2
No files matched your search
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# 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
|
||||
Reference in new issue
Block a user