You may also want to check out my win-ec2 role as an example of fetching
the passwords, adding them to inventory and generating a static inventory
file:

https://github.com/cchurch/ansible-role-win-ec2/blob/master/tasks/main.yml#L79

(I use a renamed copy of the ec2_win_password module so the role will work
with 1.9.x)


On Wed, Sep 9, 2015 at 10:26 AM, Trond Hindenes <[email protected]> wrote:

> I've been bitten by "Connection: local" aswell. Could you try delegate_to:
> localhost instead and see if that works better for you?
>
> On Wednesday, September 9, 2015 at 3:58:52 PM UTC+2, Frank Perks wrote:
>>
>> This does not actually work, i get
>>
>> FAILED! => {"failed": true, "msg": "ERROR! The module ec2_win_password
>> was not found in configured module paths"}
>>
>> I am assuming this is related to this issue:
>> https://groups.google.com/forum/#!topic/ansible-project/PqwMiIHV0js
>>
>> On Wednesday, September 9, 2015 at 7:30:25 AM UTC-4, Frank Perks wrote:
>>>
>>> I didn't realize you can specify the ansible connection on a per task
>>> level!
>>>
>>> That completely changes stuff!
>>>
>>> I will give this a shot!
>>>
>>> On Tuesday, September 8, 2015 at 4:51:48 PM UTC-4, Brian Coca wrote:
>>>>
>>>> have you tried this?
>>>>
>>>> - hosts: windows
>>>>   gather_facts: false
>>>>   tasks:
>>>>
>>>>     - ec2_win_password: <stuff>
>>>>       connection: local
>>>>
>>>>     - set_fact: ansible_ssh_host="{{ ec2_win_password.whatver}}"
>>>>
>>>>     - do_other_stuff
>>>> --
>>>> Brian Coca
>>>>
>>> --
> 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/a07b05d3-d297-4451-b207-3f7034dfb111%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a07b05d3-d297-4451-b207-3f7034dfb111%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAH%2BKTJ5vnFJt%2ByNa9ekEq59nFNyY%3DYdb3cnVwC7EUHW8vA4JEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to