mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
- name: Setup rpm-fusion and flathub
|
|
tags: ["once"]
|
|
block:
|
|
- name: Importing (free) key
|
|
ansible.builtin.rpm_key:
|
|
state: present
|
|
key: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020
|
|
|
|
- name: Importing (non-free) key
|
|
ansible.builtin.rpm_key:
|
|
state: present
|
|
key: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020
|
|
|
|
- name: install the rpmfusion repo packages
|
|
dnf:
|
|
name:
|
|
- http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
- http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
state: present
|
|
|
|
- name: Add the flathub flatpak repository remote
|
|
flatpak_remote:
|
|
name: flathub
|
|
state: present
|
|
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
|
|
become: true
|
|
|
|
- name: Create btrbk snapshot directories
|
|
tags: ["once"]
|
|
block:
|
|
- file:
|
|
path: /.snapshots
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 0775
|
|
- file:
|
|
path: /home/.snapshots
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 0775
|
|
become: true |