Hi James,

thanks for the reply, however that didn't work out.
I get the same error ""One or more undefined variables: 
'tag_Name_Destination' is undefined"

I can even simplify my playbook to "ping myself"


- name: pinging myself
  hosts: tag_Name_Source


  tasks: 
  - shell: ping {{ tag_Name_Source }}



and I still get
PLAY [pinging myself] 
*********************************************************** 


GATHERING FACTS 
*************************************************************** 
ok: [xx.xx.xx.xx]


TASK: [shell ping {{ tag_Name_Source }}] 
************************************** 
fatal: [xx.xx.xx.xx] => One or more undefined variables: 'tag_Name_Source' 
is undefined



That is, while Ansible understands 'tag_Name_Source' in the 'hosts:' 
section, it doesn't understand the *same* variable in the "shell:" section.
Do I need to use a special syntax when using variables with {{ }}?






Am Donnerstag, 11. Dezember 2014 16:32:15 UTC+1 schrieb James Cammarata:
>
> Hi Sven, this is most likely due to the caching of data by the inventory 
> script. You can set "cache_max_age = 0" in your ec2.ini to disable caching, 
> to see if that helps.
>
>

-- 
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/3801dd30-830f-4b90-9829-59c534f138e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to