Skip to content

Commit

Permalink
Add missing becomes
Browse files Browse the repository at this point in the history
To allow using epel_repositories and git-annex roles as an unprivileged user.
  • Loading branch information
adamruzicka authored and ekohl committed Nov 6, 2024
1 parent 5108816 commit 165864c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/epel_repositories/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
yum:
name: "centos-stream-repos"
state: latest
become: true
tags:
- packages
when:
Expand All @@ -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'
2 changes: 2 additions & 0 deletions roles/git-annex/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 165864c

Please sign in to comment.