mhamrah / ansible-mesos-playbook

An ansible playbook for launching a mesos cluster with docker and marathon support.
MIT License
151 stars 60 forks source link

ansible-playbook needs -u flag #3

Closed 24601 closed 9 years ago

24601 commented 10 years ago

I could clone the repo and submit a pull, but this is a small (mostly documentation?) item, at least in my environment (ubuntu 14.04 against ec2 instances from any user account that is not named ubuntu on the machine executing ansible-playbook) executing ansible-playbook requires the "-u ubuntu" flag.

mhamrah commented 10 years ago

Yeah, I'll update the readme- keep these issues coming. It's fairly platform specific depending on how you're running ansible and set up ec2.

24601 commented 10 years ago

Thanks! Great work on this project, really like it & appreciate it - I assumed this was a platform-specific thing more than a bug, I'm using a Mac OS X 10.10/Yosemite box and along this same vein (e.g. not a bug but a "good to know" thing) is that ansible on Mac OS X (at least the code outta homebrew) seems to not honor the -u flag AT ALL (or -vvvv, etc). I had to spin up an Ubuntu 14.04 box under vagrant and use the ansible out of apt which seemed to honor these flags - maybe worth noting because that was a gotcha for me, maybe I was doing something wrong, maybe ansible on mac in homebrew is broken, it was just path of least resistance to spin up an ubuntu 14.04 box and use that to keep it all copacetic.

mhamrah commented 9 years ago

I updated the readme and installation steps to use a local ansible.cfg which will bypass this issue.