How to do parameterized ansible-variable attribute-lookups?
12 views
Skip to first unread message
moe_22
unread,
Jul 10, 2017, 11:46:52 AM7/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
This is best explained by this simple example: ---
- name: getattr
hosts: 127.0.0.1
connection: local
vars:
- foo:
bar: "bar"
baz: "baz"
- bee: "bar"
tasks:
- name: get foo.bar
debug:
msg: "{{ foo|attr(bee) }}" ...