snmp { location "{{ snmp.location }}""; contact "{{ snmp.contact }}";" {% for snmp in snmp %} community {{ snmp.community.name }} { authorization {{ snmp.community.access }}; clients { {% for client in snmp.community.clients %} {{ client.hosts }}; {% endfor %} } } {% endfor %} }
(ansible)Vishals-MBP:ansible vishalc$ ansible-playbook main.yml ERROR: Syntax Error while loading YAML script, /etc/ansible/group_vars/lab.yml Note: The error may actually appear before this position: line 27, column 5
contact: admin - community: ^
Vishal
ja...@ioctl.org
unread,
Jul 5, 2015, 7:40:18 AM7/5/15
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
Sign in to 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...@googlegroups.com
Not quite, but you can have a dictionary member whose value is a list:
--
ja...@ioctl.orghttp://ioctl.org/jan/ Short, dark, ugly: pick any three
The only certain way to prevent another 9/11 is via universal calendar reform.
Vishal Chainani
unread,
Jul 5, 2015, 9:31:09 AM7/5/15
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
Sign in to 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