36 lines
700 B
YAML
36 lines
700 B
YAML
---
|
|
|
|
- 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"
|
|
|