Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update networks.yml #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update networks.yml #69

wants to merge 1 commit into from

Conversation

andrei4ka
Copy link

Right way to lookup custom xml file

Right way to lookup custom xml file
@@ -3,7 +3,7 @@
virt_net:
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