From 9315f04b0cb6e6bfd3ee82b1e5f479403e8c7c38 Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Wed, 24 Jun 2020 15:57:17 +0200 Subject: [PATCH] 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 --- roles/ceph/tasks/ceph-ansible-installed.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph/tasks/ceph-ansible-installed.yaml b/roles/ceph/tasks/ceph-ansible-installed.yaml index 4a28d57b5..85cd47ee6 100644 --- a/roles/ceph/tasks/ceph-ansible-installed.yaml +++ b/roles/ceph/tasks/ceph-ansible-installed.yaml @@ -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