Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Privilege escalation
Browse files Browse the repository at this point in the history
for some CentOS envs we need escalate privileges for ``systemctl show-environment``

closes: #8186
https://pulp.plan.io/issues/8186
  • Loading branch information
pavelpicka committed Apr 21, 2021
1 parent c4bbb3c commit 33ca444
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/8186.bugfix
@@ -0,0 +1 @@
On some environments we need to escalate privilege for Enumerate default system PATH.
2 changes: 2 additions & 0 deletions roles/pulp_common/tasks/main.yml
Expand Up @@ -87,6 +87,8 @@
changed_when: false
register: systemd_show_env_path
check_mode: false
# This task typically doesn't need root, but on some user systems it does.
become: yes

- name: systemd_show_env_path
debug:
Expand Down

0 comments on commit 33ca444

Please sign in to comment.