Fix ceph-ansible permissions when checking the repo name

The purpose of this fix is to address a bug hit during
upgrades: in order to run yum info the current user should
be able to download metadata for repositories and a privileges
escalation is required by pkg manager.

Change-Id: I248fc36ab3b1f4a81a6884b18fba5fcc0cff08ea
This commit is contained in:
Francesco Pantano 2020-06-24 15:57:17 +02:00 committed by Giulio Fidente
parent 18608d156c
commit 9315f04b0c
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@
- name: Get ceph-ansible repository
shell: "yum info ceph-ansible | awk '/From repo/ {print $4}'"
become: true
register: repo
changed_when: false