-
Notifications
You must be signed in to change notification settings - Fork 138
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
6.2.6 ignores nonexistent directory in root's PATH #68
Comments
Hi Sergey (@arronax), This is a tricky situation. Quick question, have you thought about trying to run the script as |
I think, the reason for all of this is the different invocation of Quoting man bash
Behavior can be shown using
Better yet, it can be shown directly through PATH (script has single
|
Some trivial testing through ansible.
|
I do not think that ansible will support login shells any time soon, and I am personally not sure that's required, as there are workarounds available. Environment variables and scripts are sometimes tricky, and can break whatever ansible is running. Some ansible team answers to the related issues. ansible/ansible#4854 (comment) |
Thanks again @arronax for doing all the research and hardwork. One tiny request. Could you please send the pull request to |
@arronax Please ignore the request, was able to modify the PR to pull into build |
Root's PATH in Amazon Linux (and CentOS, and likely other similar distributions) by default has
/root/bin
in it, which doesn't exist:That should trigger an action in item 6.2.6, but it skips over. Looks like ansible's
script
module doesn't set environment as it's expected in the role.Running
audit_6.2.6.sh
directly on the hosts provides expected results.The text was updated successfully, but these errors were encountered: