-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Wrong sudo_flags used (or error in docs) #7418
Comments
It preserves the home dir, not the environment, so the docs need to be updated. |
It actually sets the HOME variable to the destination user's homedir:
|
from man page on ubuntu: so it forces resetting HOME to the user you sudo into, not preserve it |
👍 for updating the docs. Took me some time to figure out that the docs are wrong. |
Issue Type:
Documentation Report
Ansible Version:
ansible 1.7 (ec2_hostname_variable 172fdf9e6a) last updated 2014/05/14 12:57:21 (GMT +300)
Environment:
Ubuntu 13.10
Summary:
The docs say that
sudo_flags
defaults to preserving the environment, but the flag actually passed is-H
, which doesn't do that at all. The correct flag is-E
.Is this an error in the docs or a bug?
Steps To Reproduce:
cat docsite/rst/intro_configuration.rst | grep environment | grep preserve
man sudo | grep environment | grep preserve
Expected Results:
The two docs agree with each other.
Actual Results:
They do not.
The text was updated successfully, but these errors were encountered: