Skip to content

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