Update update-instances.yml

This commit is contained in:
2026-03-06 23:08:38 -05:00
parent 16321ec0fd
commit b01fe3d980

View File

@@ -3,10 +3,24 @@
become: yes become: yes
tasks: tasks:
- name: Apt Update - name: Apt Update with Tailscale recovery
ansible.builtin.apt: block:
update_cache: true
- name: Apt Update
ansible.builtin.apt:
update_cache: true
rescue:
- name: Restart tailscaled if apt update failed
ansible.builtin.systemd:
name: tailscaled
state: restarted
- name: Retry Apt Update
ansible.builtin.apt:
update_cache: true
- name: Apt Upgrade - name: Apt Upgrade
ansible.builtin.apt: ansible.builtin.apt:
upgrade: yes upgrade: yes