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:
JustinandClaude Opus 5.5 committed 2026-11-07 20:51:31 -06:00
1 parent 6d5f532b2b
commit 4aeb08ab1f
2 files changed
+23 -2

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ ANSIBLE_CONFIG=/home/justin/Ansible/ansible.cfg
0 5 * * * ansible-playbook /home/justin/Ansible/docker/update-docker-compose.yaml >> /home/justin/cron-logs/update-docker-compose.log 2>&1
30 5 * * * ansible-playbook /home/justin/Ansible/docker/restart-qtorrnt.yaml >> /home/justin/cron-logs/restart-qtorrnt.log 2>&1
0 6 * * * ansible-playbook /home/justin/Ansible/ubuntu/restart-beszel.yaml >> /home/justin/cron-logs/restart-beszel.log 2>&1
#0 2 * * * ansible-playbook /home/justin/Ansible/ubuntu/update.yaml >> /home/justin/cron-logs/update.log 2>&1
#0 7 * * * ansible-playbook /home/justin/Ansible/ubuntu/reboot.yaml >> /home/justin/cron-logs/reboot.log 2>&1
0 2 * * * ansible-playbook /home/justin/Ansible/ubuntu/update.yaml >> /home/justin/cron-logs/update.log 2>&1
0 7 * * * ansible-playbook /home/justin/Ansible/ubuntu/reboot.yaml >> /home/justin/cron-logs/reboot.log 2>&1
0 5 * * 2 ansible-playbook /home/justin/Ansible/ubuntu/maint-clean-logs-cache.yaml >> /home/justin/cron-logs/maint-clean-logs-cache.log 2>&1
0 0 1,15 * * ansible-playbook /home/justin/Ansible/ubuntu/fix-ssh-host-keys.yaml >> /home/justin/cron-logs/fix-ssh-host-keys.log 2>&1
+21
View File
@@ -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