v.3.0.0 cronjob, forks=20

This commit is contained in:
2026-09-11 07:21:29 +00:00
parent 55361d189e
commit 87abce1dd3
5 changed files with 35 additions and 3 deletions
+35
View File
@@ -0,0 +1,35 @@
---
- hosts: all
become: true
gather_facts: no
tasks:
- name: Wait 30 seconds, but only start checking after 5 seconds
ansible.builtin.wait_for_connection:
# delay: 5
timeout: 30
- name: update respository index
ansible.builtin.apt:
update_cache: yes
- name: full-upgrade system
ansible.builtin.apt:
upgrade: full
- name: Run the equivalent of "apt clean"
ansible.builtin.apt:
clean: yes
- hosts: homelab
become: true
gather_facts: yes
tasks:
- name: Upgrade flatpaks
ansible.builtin.command: flatpak update --noninteractive
register: flatpak_update_output
changed_when: "'app/' in flatpak_update_output.stdout"