post_install/roles/fedora/tasks/main.yml

52 lines
1.1 KiB
YAML
Raw Normal View History

2025-03-03 07:10:00 +00:00
---
# tasks file for fedora
- name: "Adding rpmfusion repos"
become: true
block:
- name: "Add rpmfustion repo gpg keys"
ansible.builtin.rpm_key:
key: "{{ item }}"
state: present
with_items: "{{ rpmfusion_keys }}"
- name: "Install the rpmfusion repo packages"
ansible.builtin.dnf:
name: "{{ item }}"
state: present
with_items: "{{ rpmfusion_repos }}"
2025-04-28 09:56:36 +00:00
rescue:
- ansible.builtin.debug:
msg: "rpmfusion Repos konnten nicht hinzugefügt werden."
- name: "Remove and install dnf software"
2025-04-28 14:04:37 +00:00
become: true
block:
- name: "Remove unnecassary packages"
ansible.builtin.dnf:
name: "{{ rem_packages }}"
state: absent
- name: "Install all current updates"
ansible.builtin.dnf:
name: "*"
state: latest
- name: "Install packages"
ansible.builtin.dnf:
name: "{{ packages }}"
state: present
2025-04-28 14:03:40 +00:00
register: dnf_install_errors
2025-04-28 14:03:40 +00:00
rescue:
- ansible.builtin.debug:
msg: "{{ dnf_install_errors }}"
2025-04-28 14:01:12 +00:00
- name: "Install Flatpaks"
2025-03-03 07:10:00 +00:00
flatpak:
name: "{{ flatpaks }}"
2025-03-03 07:10:00 +00:00
state: present