Install packages with sudo - #68
Open
jacobemery wants to merge 1 commit into
Open
Conversation
Change "install bootstrap packages (package)" task to become: yes so that packages can be installed successfully.
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?