Re: [ansible-project] vault and git do not mix

2017-01-31 Thread Florin Andrei
As far as git is concerned, vault might as well be binary. Anyway, it doesn't know how to diff/merge it. And that's the root of the problem here. On Tuesday, January 31, 2017 at 2:39:32 PM UTC-8, Brian Coca wrote: > > This is a problem with all encryption/versioning, as encryption is > supposed

[ansible-project] vault and git do not mix

2017-01-31 Thread Florin Andrei
I can't be the only one having this problem: We're using vault files to store sensitive info (such as passwords or private keys). Vault files, along with Ansible playbooks, roles, inventories, etc are checked into GitHub. Using git works great for all Ansible files, except vaults. They're binar

Re: [ansible-project] delegate_to a whole group: is it sequential or parallel?

2016-03-02 Thread Florin Andrei
Makes sense, thanks. But is there a way to parallelize delegate_to somehow? All looping methods I'm aware of are based on with_ and that's, as you said, serial. On Wednesday, March 2, 2016 at 3:50:21 PM UTC-8, Brian Coca wrote: > > delegate_to is not inherently parallel or serial, there is no

[ansible-project] delegate_to a whole group: is it sequential or parallel?

2016-03-01 Thread Florin Andrei
- name: disable instance on HAproxy and wait for it to go offline haproxy: state=disabled backend=app_back host={{ inventory_hostname_short }} socket=/run/haproxy/admin.sock shutdown_sessions=no wait=yes delegate_to: "{{ item }}" with_items: groups.haproxy_app The haproxy_app group has 3 in

[ansible-project] how to use variables defined in another group

2015-11-09 Thread Florin Andrei
I have several inventory files, where many groups are defined. For the big groups, I've defined variables in ./group_vars/${group_name}/main.yml For one role, which is typically executed only against two groups (specifically, against one host in each one of those two big groups), I need to "bor

[ansible-project] ansible-pull, GitHub private repository, deploy key

2015-01-27 Thread Florin Andrei
I might be asking something obvious here, but anyway: I've a private repo on GitHub, with an account on a read-only team there. I would like to run ansible-pull in one step with that repo, but I can't seem to figure out how to tell ansible-pull to use the correct deploy key on GH. The git modul

Re: [ansible-project] using multiple dynamic inventory scripts at once

2014-12-10 Thread Florin Andrei
_ocean.py in a directory called "inventory", you could then use: > > ansible -i ~/ansible/inventory -u my-special-user -f 20 -s \* -m shell -a > 'ps' > > You could then also call each inventory script separately if you needed. > > > On Wed, Dec 10, 2014 at

[ansible-project] using multiple dynamic inventory scripts at once

2014-12-10 Thread Florin Andrei
New to Ansible, just testing it. For now, I'm using dynamic inventory scrips, and I'm trying to run simple commands on all hosts, via ansible. I've setup ec2.py and digital_ocean.py in ~/ansible/, and both scripts work just fine. Provisioned with the correct credentials, if I run either script

[ansible-project] regarding inventory scripts

2014-10-15 Thread Florin Andrei
(New to Ansible, still figuring out things) If I have several inventory scripts, is it possible to use them all at once, e.g. like this? ansible -i ec2.py -i some-other-provider.py ... Are there any guidelines or templates for writing your own inventory script? What prompts these questions is