Compare commits

..
2 Commits
Author SHA1 Message Date
davidandClaude Sonnet 5.5 6f0508fae9 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]>
2026-10-30 22:04:47 +00:00
davidandClaude Sonnet 5.5 f62a69344e Use Tailscale IPs for ansible_host so inventory works without MagicDNS
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-29 23:02:51 +00:00
4 changed files with 23 additions and 3 deletions

No files matched your search

+3 -3
View File
@@ -5,10 +5,10 @@ all:
zero_w:
hosts:
dm-baldock:
ansible_host: dm-baldock
ansible_host: 100.84.113.52
zero2_w:
hosts:
dm-ashwell:
ansible_host: dm-ashwell
ansible_host: 100.115.132.29
dm-edworth:
ansible_host: dm-edworth
ansible_host: 100.117.12.4
+3
View File
@@ -16,3 +16,6 @@
group: "{{ remote_user }}"
mode: "0755"
become: false
- name: Clone/update meshfirmware
ansible.builtin.import_tasks: meshfirmware.yml
@@ -0,0 +1,8 @@
---
- name: Clone/update meshfirmware
ansible.builtin.git:
repo: https://github.com/mikecarper/meshfirmware.git
dest: "/home/{{ remote_user }}/meshfirmware"
version: main
update: true
become: false
+9
View File
@@ -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