--- # tasks file for fedoraSilverblue - name: "Remove and install rpm-ostree software" block: - name: "Remove preinstalled rpm-ostree packages" community.general.rpm_ostree_pkg: name: "{{ silverblue_rem_packages }}" state: absent - name: "Upgrade the rpm-ostree image without options, accept all defaults" ansible.posix.rpm_ostree_upgrade: - name: "Install packages" community.general.rpm_ostree_pkg: name: "{{ silverblue_packages }}" state: present apply_live: true rescue: - name: "Log errors" ansible.builtin.lineinfile: dest: "{{ log_path }}" line: >- [ERR] Error while removing, updating or installing software. - name: "Remove and install Flathub software" block: - name: "Remove preinstalled Flatpaks" community.general.flatpak: name: "{{ silverblue_rem_flatpaks }}" state: absent - name: "Add the flathub flatpak repository remote" community.general.flatpak_remote: name: flathub state: present flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo - name: "Install Flatpaks" community.general.flatpak: name: "{{ silverblue_flatpaks }}" state: present rescue: - name: "Log errors" ansible.builtin.lineinfile: dest: "{{ log_path }}" line: >- [ERR] Error while removing, updating or installing flatpaks.