You mean output like this during a play:

.......
TASK: [base-mongodb | install mongodb RPMs v {{mongo_version}}] ***************
ok: [mongo1] =>
(item=mongodb-org-2.6.0,mongodb-org-server-2.6.0,mongodb-org-shell-2.6.0)
.......

?

Personally I quite like the behaviour, I see it as useful to know what var
is controlling that part of a playbook run - though I know colleagues who
took the opposite view.

On 8 May 2014 22:43, Joost Cassee <[email protected]> wrote:
> 2014-05-08 8:21 GMT+02:00 Slava Semushin <[email protected]>:
>> 2014-05-08 0:28 GMT+04:00 Joost Cassee <[email protected]>:
>>
>>> - name: Create A record for domain {{ domain }}
>>> [...]
>>
>> Have you tried with
>>
>> - name: Create A record {{domain}}
>>   route53: command=create zone=example.com record={{ domain }} type=A
>> value={{ ip }}
>>
>> ?
>>
>> Because based on output above you used website_domain variable which
>> isn't available inside role.
>
> I guess I was not clear. The variable website_domain does exist, I was
> including only what I thought was the interesting bits. Ansible would
> have complained, by the way, if the variable had not existed.
>
> The attached archive contains an isolated example. Run with
> "ansible-playbook test.yml -i hosts". Notice how the debug tasks print
> the contents of the variables foo and bar, while the task names both
> contain "{{ foo }}".
>
> Regards,
> Joost
>
> --
> Joost Cassee
> http://joost.cassee.net
>
> --
> 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/CAEQrH%2Bc-KMEGaCV%2B3LLo3qKOSvztb78AMn%2BhY8gghzhmJBbuyQ%40mail.gmail.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/CAK5eLPQF04aRKKSrj7frK6gZMzUjL7rdQpsoh97fM%3DFy6Toepg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to