27 lines
501 B
YAML
27 lines
501 B
YAML
---
|
|
|
|
- hosts: all
|
|
become: true
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
- name: update respository index
|
|
ansible.builtin.apt:
|
|
update_cache: yes
|
|
upgrade: safe
|
|
|
|
- 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"
|
|
|