2014-05-09 21:12 GMT+02:00 Michael DeHaan <[email protected]>:
> To explaloate (this has been answered several times before), imagine you are
> managing 500 hosts and an the inventory variable is different on each one?
> There's no way to show a good task header in that case.
Of course, that's it. There is no single value.
> The best course of action is to name each task and don't have variables in
> the task name, so it prints out a nice description.
Well, that was my original problem. I have a generic role that creates
DNS entries, that is depended upon by various other roles, in order
to, well, create DNS entries. So there is not really a nice
description to print out.
It has tasks like:
- name: Create A record for {{ domain }}
route53: command=create zone={{ dns_zone }}
record={{ domain }} type=A ttl={{ ttl }} value={{
ansible_default_ipv4.address }}
I was trying to get Ansible to print out the domains that are created
without using the debug task, but I guess I will use debug after all.
By the way, I did search the list for variation on "name variable
interpolation" but did not find anything. Thanks for explaining yet
again!
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%2BdQXX00kk9bm7XUZCTOfQ_xSjv1APYG1Kz_8ks-T1hMYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.