diff --git a/roles/epel_repositories/tasks/main.yml b/roles/epel_repositories/tasks/main.yml index 5738d4b93..92d53ef89 100644 --- a/roles/epel_repositories/tasks/main.yml +++ b/roles/epel_repositories/tasks/main.yml @@ -3,6 +3,7 @@ yum: name: "centos-stream-repos" state: latest + become: true tags: - packages when: @@ -14,6 +15,7 @@ name: "{{ epel_repositories_name }}" disable_gpg_check: True state: "{{ epel_repositories_state }}" + become: true tags: - packages when: ansible_os_family == 'RedHat' diff --git a/roles/git-annex/tasks/main.yml b/roles/git-annex/tasks/main.yml index ef6c93ae2..26ab52b29 100644 --- a/roles/git-annex/tasks/main.yml +++ b/roles/git-annex/tasks/main.yml @@ -9,9 +9,11 @@ description: git-annex baseurl: https://downloads.kitenet.net/git-annex/linux/current/rpms/ gpgcheck: false + become: true when: ansible_distribution == 'RedHat' - name: Install git-annex yum: name: "{{ git_annex_package }}" state: present + become: true