ansible-coreos-bootstrap icon indicating copy to clipboard operation
ansible-coreos-bootstrap copied to clipboard

Using sudo in subsequent modules after bootstrap doesn't work if you didn't use sudo to bootstrap

Open vallard opened this issue 9 years ago • 3 comments

following the README.md I didn't use sudo to install the bootstrap and everything was created (pypy, bin) in the /home/core directory. On subsequent calls, I followed the README and used sudo to install docker-py with pip. This caused a problem because the /home/core/bin/pip file uses $HOME in the paths and when I used sudo it looked for those files in the /root directory.

I am using cores 557.2.0 image for openstack (latest I found on their website)

vallard avatar Mar 03 '15 20:03 vallard

Yep... To get around this I've forked this repo and made sure the Python-stuff is installed as root under /opt/. See https://github.com/hbokh/ansible-coreos-bootstrap/commit/d0d12acd1d5994b1fee7b5700eecda8bf1fe3fff The bootstrap-playbook now (also) has to be run with sudo: true, just as the example-playbook.

hbokh avatar Mar 24 '15 10:03 hbokh

+1. Same issue.

vamonte avatar Apr 02 '15 21:04 vamonte

This seems to be going back and forth. I remember some PR where root was removed, then new issues started happening. If it helps to document this better in the readme, I would accept a PR for that.

defunctzombie avatar Apr 02 '15 23:04 defunctzombie