If you read the documentation page of this module careful enough, you will see
that, in fact, the “{{ item }}” comes from the with_file, not from your vars.
That is the material :)
On Jan 17, 2015, at 6:13 PM, James Morgan <[email protected]> wrote:
> Hi,
>
> That gives me the following
>
> TASK: [openbet/aws/ec2-create-instance | Create ec2 key pair using local key]
> ***
> fatal: [localhost] => could not locate file in lookup: -----BEGIN RSA PRIVATE
> KEY-----
> MIIEogIBAAKCAQEAkYI6Fxq0Qlxmn0rwWlyVX4VERtahcjZDFMA8VnJiPCcHMcGSZWmqkVusrm39
> wIHi16uUwyj+D0BpoNEDy8mvaRvE9apwn2s/Ampyb8nQnHCNdx43wu+AIN3PG8PAfRbrcGlPpKpQ
>
> The location is correct.
>
> I'm running ansible-playbook 1.8.2
>
>
> It still logs the private key which is iffy and
>
> when: ec2_key_material is defined
>
> isn't stopping it from looking for the file. I would have thought it would
> have short circuited itself before doing any lookups
>
> James
>
>
> --
> You received this message because you are subscribed to a topic in the Google
> Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/S-_Fe4V0Ebo/unsubscribe.
> To unsubscribe from this group and all its topics, 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/fe6d92ef-1948-4112-a5ef-e53c286f1424%40googlegroups.com.
> 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/0798A972-AAFF-4176-81F6-F451EDF67834%40gmail.com.
For more options, visit https://groups.google.com/d/optout.