From 6fef6f11f073886983870db23028e0f2aba5949b Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 11 Oct 2020 20:30:30 +0200 Subject: [PATCH] Run DNF as root Part of #8 Signed-off-by: Matej Focko --- playbooks/fedora.yml | 4 +++- playbooks/roles/set_dnf/tasks/main.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/fedora.yml b/playbooks/fedora.yml index ea5c6b6..b9f816c 100644 --- a/playbooks/fedora.yml +++ b/playbooks/fedora.yml @@ -2,7 +2,9 @@ - name: Fedora bootstrap hosts: all roles: - - set_dnf + - role: set_dnf + become: yes + become_method: sudo - flatpaks - ssh - shell diff --git a/playbooks/roles/set_dnf/tasks/main.yml b/playbooks/roles/set_dnf/tasks/main.yml index 20ab521..7eddbbf 100644 --- a/playbooks/roles/set_dnf/tasks/main.yml +++ b/playbooks/roles/set_dnf/tasks/main.yml @@ -14,4 +14,4 @@ - name: Install flameshot for screenshots dnf: name: flameshot - state: present \ No newline at end of file + state: present