From bf1cce91fab18a97cf2ef1d0a2b617438ec6f5ce Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 17 Oct 2020 13:41:25 +0200 Subject: [PATCH] Install RPMFusion RPMs and fix warning for VSCode Closes #18 Signed-off-by: Matej Focko --- playbooks/roles/fedora/repositories/tasks/main.yml | 11 +++++++++++ playbooks/roles/vscode/tasks/main.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/fedora/repositories/tasks/main.yml b/playbooks/roles/fedora/repositories/tasks/main.yml index 3cf6008..05847fe 100644 --- a/playbooks/roles/fedora/repositories/tasks/main.yml +++ b/playbooks/roles/fedora/repositories/tasks/main.yml @@ -1,4 +1,15 @@ --- +- name: Get version of Fedora + shell: rpm -E %fedora + register: fedora_version + +- name: Install RPMFusion RPMs with GPG keys + dnf: + name: + - "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ fedora_version.stdout }}.noarch.rpm" + - "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ fedora_version.stdout }}.noarch.rpm" + state: present + - name: Install Google Chrome repository template: src: templates/google-chrome.repo.j2 diff --git a/playbooks/roles/vscode/tasks/main.yml b/playbooks/roles/vscode/tasks/main.yml index 23e19aa..0d8636d 100644 --- a/playbooks/roles/vscode/tasks/main.yml +++ b/playbooks/roles/vscode/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Create directories for VSCode file: - path: {{ item }} + path: "{{ item }}" state: directory loop: - ~/.local/bin