Hi,
I have a role that updates DNS records. It contains a number of tasks such
as:
- name: Create A record
route53: command=create zone=example.com record={{ domain }} type=A
value={{ ip }}
Other roles (that represent server profiles) depend on this role like this:
- role: dns
domain: "{{ website_domain }}"
ip: "{{ ansible_default_ipv4.address }}"
The problem is that the role execution does not give a lot of information
because the name of the task is the same every time. Of course I could use
a debug task, but I thought I would put the domain in the task name, like
this:
- name: Create A record for domain {{ domain }}
Unfortunately, the variable interpolation does not work well, it seems to
go only one "level" deep. This is the output:
TASK: [dns | Create A record for {{website_domain}}]
******************************
ok: [web1.example.com]
My question: is this expected behavior? Otherwise I will try and isolate
the problem and create an issue.
Regards,
Joost
--
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/c3714f12-03b5-4928-8847-488ff60b69ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.