Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Need to know where we need to write the code for below thing -
23 views
Skip to first unread message
nishant bawane
unread,
Apr 12, 2017, 10:02:37 AM
4/12/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
I know it is stupid question, but how can I use the beow code in my playbook . Do we need to use any command or shell for this ?
{% for host in groups['app_servers'] %}
{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}
{% endfor %}
Brian Coca
unread,
Apr 12, 2017, 9:24:30 PM
4/12/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
put it in a template and use template module? hard to answer with the
context given.
----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages