I am curious to know what your hosts file and 
group_vars\tag_type_iisserver.yml look like. I am trying to add dynamic 
hosts to my static windows group in /etc/ansible/hosts using the following 
syntax
[tag_name_xzy]

[windows:children]
tag_name_xyz

as shown in the documentation and the result is : "No hosts matched" even 
though ec2.py does return a few hosts under the section [tag_name_xyz]. 
It's driving me crazy. Any help is appreciated.
Thanks


On Thursday, March 5, 2015 at 9:25:15 AM UTC-8, Daniel Furze wrote:
>
> doh!
>
> I solved it by creating a group_vars file with the same name as one of my 
> hosts tags
>
> group_vars\tag_type_iisserver.yml
>
>
> On Thursday, 5 March 2015 14:06:10 UTC, Daniel Furze wrote:
>>
>> I've been playing with ansible and have everything working for managing 
>> linux instances via dynamic inventory in ec2, I have also set up windows 
>> support when using a fix hosts file.
>>
>> When I try to use ec2 dynamic inventory to manage windows instances it 
>> seems to flip back to trying SSH for access.
>>
>> Currently I have a simple playbook:
>>
>> ---
>> ### Setup instances
>>
>> - name: configure iis servers
>>   hosts: tag_environment_test:&tag_type_iisserver
>>   roles:
>>     - iisserver 
>>
>> in my roles file:
>>
>> ---
>> ### Install iis
>>
>> - name: Install iis
>>   win_feature:
>>     name: "Web-Server"
>> state: absent
>> restart: yes
>> include_sub_features: yes
>> include_management_tools: yes
>>
>> ec2 dynamic inventory is managed by boto
>> wndows credentials are in group_vars/windows.yml
>>
>> I'm guessing there's a setting for the playbook to tell a role it should 
>> use the windows credentials.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5692925a-6d84-4602-9c6e-ce5d63d45777%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to