post_install/roles/silverblue/tasks/main.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2025-05-02 17:30:48 +00:00
---
# tasks file for fedoraSilverblue
- name: "Remove and install rpm-ostree software"
block:
2025-05-03 09:19:38 +00:00
- name: "Remove preinstalled rpm-ostree packages"
community.general.rpm_ostree_pkg:
name: "{{ silverblue_rem_packages }}"
state: absent
2025-05-02 17:30:48 +00:00
- 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.
2025-05-03 09:19:38 +00:00
- name: "Remove and install Flathub software"
2025-05-03 08:36:21 +00:00
block:
- name: "Remove preinstalled Flatpaks"
community.general.flatpak:
name: "{{ silverblue_rem_flatpaks }}"
state: absent
2025-05-03 09:19:38 +00:00
- name: "Add the flathub flatpak repository remote"
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
2025-05-02 17:30:48 +00:00
2025-05-03 08:36:21 +00:00
- 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.