stackhpc / stackhpc/ansible-collection-openstack

Sudo requirement for os_openstacksdk should be unnecessary if packages are already installed

Open Beginner friendly
#75 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jinja
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

https://github.com/stackhpc/ansible-collection-openstack/blob/08a7fad71c54c40b159bcdc325e90acad8f27627/roles/os_openstacksdk/tasks/main.yml#L20

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.