Update update-instances.yml
This commit is contained in:
@@ -3,10 +3,24 @@
|
|||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Apt Update with Tailscale recovery
|
||||||
|
block:
|
||||||
|
|
||||||
- name: Apt Update
|
- name: Apt Update
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user