post_install/roles/silverblue/tasks/main.yml
2025-05-03 20:10:14 +02:00

59 lines
1.7 KiB
YAML

---
# 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 }}"
- name: "Upgrade the rpm-ostree image"
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.
- name: "Install Homebrew"
ansible.builtin.include_role:
name: homebrewinstall
vars:
homebrewinstall_home: "/var/home"
homebrewinstall_path: "/home/linuxbrew/.linuxbrew/bin/brew"