Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install packages with sudo #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacobemery
Copy link

Change "install bootstrap packages (package)" task to become: yes so that packages can be installed successfully. Need sudo/become. There was a PR about this but it was closed and wasn't clear why. I tested this change out on RHEL 8 and it worked.


name: Pull request
about: Describe the proposed change


Describe the change
A clear and concise description of what the pull request is.

Testing
In case a feature was added, how were tests performed?

Change "install bootstrap packages (package)" task to become: yes so that packages can be installed successfully.
@jacobemery
Copy link
Author

Looks like molecule tests failed with Amazon Linux because it failed to find sudo command. From what I can find online, this image is running as root and doesn't have sudo installed by default. Not sure how this one could be excepted from 'become' parameter, or sudo could be installed maybe.

Here's the error:

[bootstrap-amazonlinux-latestpy310-ansible-6]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python2.7"}, "changed": false, "module_stderr": "/bin/sh: sudo: command not found\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant