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

docker_ubuntu unexpectedly alters Ansible environment #101

Closed
gotgenes opened this issue Jun 10, 2016 · 1 comment
Closed

docker_ubuntu unexpectedly alters Ansible environment #101

gotgenes opened this issue Jun 10, 2016 · 1 comment

Comments

@gotgenes
Copy link
Contributor

gotgenes commented Jun 10, 2016

I must execute docker_ubuntu role with become: yes because it requires administrative privileges to do the tasks. The final task in docker_ubuntu performs a setup action, which alters variables. In my case, tasks in roles following the docker_ubuntu role needed to use the HOME environment variable, but the call to setup caused my environment to be set to root's environment (and therefore, HOME to be set to /root).

Is there a way to avoid calling setup, or at the very least, can it please be much more tightly restricted (see the available options for setup)? I don't understand to what this docker.io relates. It appears to be a deprecated name for the Docker package. If it is, could this please be removed entirely?

@gotgenes gotgenes changed the title Use of setup breaks Ansible environment docker_ubuntu unexpectedly alters Ansible environment Jun 10, 2016
@angstwad
Copy link
Owner

angstwad commented Jun 12, 2016

Setup was introduced in #63 to make sure that it picks up the latest facts from the system post install.

I'd take a PR that allows one to disable the setup call, with the default being keeping existing functionality.

Alternatively you could run setup after this role runs as the user you desire.

gotgenes added a commit to gotgenes/docker.ubuntu that referenced this issue Jun 13, 2016
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

No branches or pull requests

2 participants