I’ve been reviewing Ansible and have really liked what I’ve seen. I’m working in a company that has a rather non-standard Linux environment though. To use Ansible I need to address a few rough spots and unfortunately I am limited in what I can change about how the target servers are setup and managed. After reviewing 0.4 and digging around the list I had some questions I was hoping to get some feedback on.
- Is there a way to suppress the autosyncing of modules? We have a deployment management system that makes code available on all servers and would like Ansible to get the module files from a path that is local to the target machine. There is considerable concern that the auditors will have issue with the software circumventing this system and copying files to servers.
No way to not auto-sync when using SSH, but you may want to take a look at ansible-pull or use play books in local mode if that’s a problem. Both are pretty good solutions.
- Does anyone have experience using Powerbroker[1] with Ansible? We cannot use sudo or root. All work is to be done with your personal account or a Powerbroker account. It looks like I could write a connector that handles how PB works. The only problem I see is that Sudo params are hard coded in the scripts. I suppose we could write our own bin scripts, but that seems like a lot for a little bit.
Haven’t heard about PB until now. “Sudo params are hard coded in the scripts” … hmm, well, you could subclass the SSH connection and override that handling…
- When I was trying something out on my demo, I tried to remote to some servers with my personal credentials, but no home directory. (This is the case for most of our servers.) One all those machines I got errors that Ansible could not create /home/tappnel/.ansible/tmp. Is there some way to override where the temp files are created or is this a bug?
It’s not really a bug, it just assumes if you are logging in as someone, you can put files in their home directory.
The ANSIBLE_REMOTE_TMP environment variable can be set to anything and is probably what you want.