Skip to content

Conversation

andrei4ka
Copy link

Right way to lookup custom xml file

Right way to lookup custom xml file
name: "{{ item.name }}"
command: define
xml: "{{ item.xml | default(lookup('template', 'network.xml.j2')) }}"
xml: "{{ lookup('template', item.xml | default('network.xml.j2')) }}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the behaviour from item.xml being the XML network definition to the name of a template file containing the XML definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants