post_install/roles/silverblue/tasks/main.yml

53 lines
1.5 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:
- name: "Uninstall Default rpm software"
ansible.builtin.include_tasks: rpmostree_override.yml
vars:
pkg_path: "{{ item.pkg_path }}"
package: "{{ item.name }}"
with_items: "{{ silverblue_rem_packages }}"
2025-05-03 09:19:38 +00:00
2025-05-03 13:41:45 +00:00
- name: "Upgrade the rpm-ostree image"
2025-05-02 17:30:48 +00:00
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.