Add dnf repofiles
This commit is contained in:
@@ -8,6 +8,14 @@ dnf_add_repos:
|
|||||||
description: Visual Studio Code
|
description: Visual Studio Code
|
||||||
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
||||||
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
||||||
|
- name: jriver
|
||||||
|
description: JRiver Media Center by BryanC
|
||||||
|
baseurl: https://repos.bryanroessler.com/jriver
|
||||||
|
gpgcheck: false
|
||||||
|
|
||||||
|
dnf_add_repofiles:
|
||||||
|
- name: Mullvad VPN
|
||||||
|
url: https://repository.mullvad.net/rpm/stable/mullvad.repo
|
||||||
|
|
||||||
dnf_remove:
|
dnf_remove:
|
||||||
- abrt
|
- abrt
|
||||||
@@ -47,6 +55,8 @@ dnf_install:
|
|||||||
- tailscale
|
- tailscale
|
||||||
- dnf5-plugin-automatic
|
- dnf5-plugin-automatic
|
||||||
- btrfs-assistant
|
- btrfs-assistant
|
||||||
|
- mullvad-vpn
|
||||||
|
- mediacenter35
|
||||||
|
|
||||||
# Cargo packages to install
|
# Cargo packages to install
|
||||||
cargo_packages:
|
cargo_packages:
|
||||||
|
|||||||
@@ -10,20 +10,30 @@
|
|||||||
- name: Add DNF repositories
|
- name: Add DNF repositories
|
||||||
ansible.builtin.yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
description: "{{ item.description }}"
|
description: "{{ item.description | default(omit) }}"
|
||||||
baseurl: "{{ item.baseurl }}"
|
baseurl: "{{ item.baseurl }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
gpgcheck: true
|
gpgcheck: "{{ item.gpgcheck | default(true) }}"
|
||||||
gpgkey: "{{ item.gpgkey }}"
|
gpgkey: "{{ item.gpgkey | default(omit) }}"
|
||||||
loop: "{{ (dnf_add_repos | default([])) + (dnf_add_repos_group | default([])) }}"
|
loop: "{{ (dnf_add_repos | default([])) + (dnf_add_repos_group | default([])) }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Add DNF repository files
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "{{ item.url }}"
|
||||||
|
dest: "/etc/yum.repos.d/{{ item.url | basename }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0644'
|
||||||
|
loop: "{{ (dnf_add_repofiles | default([])) + (dnf_add_repofiles_group | default([])) }}"
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Remove unwanted packages
|
- name: Remove unwanted packages
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "{{ (dnf_remove | default([])) + (dnf_remove_group | default([])) }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
loop: "{{ (dnf_remove | default([])) + (dnf_remove_group | default([])) }}"
|
||||||
become: true
|
become: true
|
||||||
when: ((dnf_remove | default([])) + (dnf_remove_group | default([]))) | length > 0
|
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Install DNF packages
|
- name: Install DNF packages
|
||||||
|
|||||||
Reference in New Issue
Block a user