This all worked file then I added a group of groups to the inventory and not Ansible is searching for webservers not hostname01 in ssh config. For a single host I can easily modify the Host section of ssh config... but when that group webservers has 10 hosts in it what do I do then?
mi...@construct.pm
unread,
Nov 3, 2014, 11:07:08 AM11/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
To clarify my inventory file now looks like this:
[webservers]
hostname01
[databases]
hostname02
[production]
webservers
databases
Michael Peters
unread,
Nov 3, 2014, 11:11:39 AM11/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
The children of a group in the inventory are assumed to be hostnames,
not other groups. This is why ssh is trying to find that groupname in
the ssh config, because it's supposed to be a host.
If you want to put a group as a child of another group you need to use
this syntax: