We got burned by this too.
We use Ansible from a single Jenkins server to manage instances in multiple
EC2 VPCs. We use strict host checking for security and we have a custom
known_hosts file per VPC (we've automated updates to known_hosts on each
deploy).
"Reading the SSH config to pick up
or the second one depending
on whether you need to do the second step.
Might not work for you to me.
On Fri, May 30, 2014 at 1:15 PM, Steve Ims steven.d@gmail.com
wrote:
After closer inspection: The posted playbook works for bootstrap (first
run), but not beyond.
Seems that outgoing
.
groups.outgoing).
Is there a way to access groups within the template ({{ ... }}) ?
Thanks.
On Thursday, May 29, 2014 1:44:44 PM UTC-4, Steve Ims wrote:
Sorry for the spam, but I just stumbled upon a possible solution
https://groups.google.com/forum/#!topic/ansible-project/eqNR_RdC0jg
the first host out of that group
- hosts: groupOneAndTwo[0]
tasks:
- shell: echo I am the first node in both!
On Sat, May 24, 2014 at 10:29 PM, Steve Ims steven...@gmail.comjavascript:
wrote:
Found a brute-force solution:
$ ipaddr=$(ansible tag_version_1:tag_role_foo
Found a brute-force solution:
$ ipaddr=$(ansible tag_version_1:tag_role_foo --list-hosts | head -n 2 |
tail -n 1)
$ ansible ${ipaddr} -m ping
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop receiving