Project

Profile

Help

Refactor #2892

closed

use of 'sudo' not ideal in ansible task

Added by kdelee@redhat.com over 7 years ago. Updated over 2 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Target Release - Packaging:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Some tasks running shell commands use "sudo" explicitly, this is not ideal. Example: [0]
Instead, use of "become: True" is preferred. See ansible docs on "become" [1]

[0] https://github.com/pulp/pulp_packaging/blob/master/ci/ansible/roles/pulp/tasks/main.yaml#L130-L146
[1] http://docs.ansible.com/ansible/become.html

Also available in: Atom PDF