Files
DesktopAnsible/scripts/install_flatpak.yml
2023-07-15 19:39:13 -05:00

18 lines
464 B
YAML

- name: configure flatpak
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
- name: update flatpaks
shell:
cmd: flatpak update --noninteractive
- name: install flatpak
become_user: user
community.general.flatpak:
name: "{{ item }}"
with_items: "{{ required_flatpak_packages }}"
when: required_flatpak_packages is defined
ignore_errors: yes