post_install/roles/fedora/tasks/main.yml

55 lines
1.2 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: "{{ fedora_rpmfusion_keys }}"
state: present
- name: "Install the rpmfusion repo packages"
ansible.builtin.dnf:
name: "{{ fedora_rpmfusion_repos }}"
state: present
2025-04-28 09:56:36 +00:00
rescue:
2025-04-29 13:53:18 +00:00
- name: "Log errors"
ansible.builtin.lineinfile:
dest: "{{ log_path }}"
line: >-
[ERR] Error while adding rpmfusion repos
- name: "Remove and install dnf software"
2025-04-28 20:24:23 +00:00
become: true
block:
- name: "Remove unnecassary packages"
ansible.builtin.dnf:
name: "{{ fedora_rem_packages }}"
state: absent
- name: "Install all current updates"
ansible.builtin.dnf:
name: "*"
state: latest
- name: "Install packages"
ansible.builtin.dnf:
name: "{{ fedora_packages }}"
state: present
2025-04-28 14:03:40 +00:00
rescue:
2025-04-28 14:15:24 +00:00
- name: "Log errors"
2025-04-28 19:43:26 +00:00
ansible.builtin.lineinfile:
2025-04-28 20:24:23 +00:00
dest: "{{ log_path }}"
2025-04-28 14:15:24 +00:00
line: >-
[ERR] Error while removing, updating or installing software.
2025-04-28 14:01:12 +00:00
- name: "Install Flatpaks"
2025-05-03 08:36:21 +00:00
community.general.flatpak:
name: "{{ fedora_flatpaks }}"
2025-03-03 07:10:00 +00:00
state: present