Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

uri: "{{ libvirt_host_uri | default(omit, true) }}"
with_items: "{{ libvirt_host_networks }}"
become: True
Expand Down