stackhpc / stackhpc/ansible-collection-openstack
Sudo requirement for os_openstacksdk should be unnecessary if packages are already installed
Nobody has claimed this yet.
- Dominant language
- Jinja
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
The way the os_openstacksdk Ensure required packages are installed task is currently specified requires sudo privileges even if the packages are already installed. If would be nice if that was not necessary, for example by splitting the package presence check from the install. The following seems a relevant example:
https://stackoverflow.com/questions/65834036/how-to-use-the-package-module-as-non-root-user
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading roles/os_openstacksdk/tasks/main.yml at line 20 and the linked package-module example. Verify that the role can check package presence without sudo and only require privilege when installation is needed; done when already-installed packages work for a non-root user.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100