Run apt autoremove as its own task and manage meshfirmware via Ansible
apt's autoremove option is not reliably honoured alongside upgrade:, so upgrade.yml now runs it separately. meshfirmware is cloned/updated by the scripts role (as the remote user) from both site.yml and upgrade.yml. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
f62a69344e
commit
6f0508fae9
3 files changed
+20
No files matched your search
@@ -13,8 +13,17 @@
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
upgrade: dist
|
||||
|
||||
# Separate task: apt's autoremove option is not reliably honoured together with upgrade:
|
||||
- name: apt autoremove
|
||||
ansible.builtin.apt:
|
||||
autoremove: true
|
||||
|
||||
- name: Update meshfirmware
|
||||
ansible.builtin.import_role:
|
||||
name: scripts
|
||||
tasks_from: meshfirmware
|
||||
|
||||
- name: Check whether a reboot is required
|
||||
ansible.builtin.stat:
|
||||
path: /var/run/reboot-required
|
||||
|
||||
Reference in new issue
Block a user