2022-11-23 01:26:33 -08:00
|
|
|
- name: Setup rpm-fusion and flathub
|
2022-11-13 00:45:02 -08:00
|
|
|
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
|
2022-11-23 21:50:18 -08:00
|
|
|
|
2022-11-13 00:45:02 -08:00
|
|
|
- name: Add the flathub flatpak repository remote
|
|
|
|
flatpak_remote:
|
|
|
|
name: flathub
|
|
|
|
state: present
|
2022-11-23 01:26:33 -08:00
|
|
|
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
|
2022-11-12 11:17:16 -08:00
|
|
|
become: true
|
2022-11-23 23:38:18 -08:00
|
|
|
|
|
|
|
- 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
|