File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed
Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 11---
22
3+ - name : config_storage pools | ensure storage pool paths exist
4+ become : true
5+ file :
6+ path : " {{ item['path'] }}"
7+ state : directory
8+ loop : " {{ kvm_storage_pools }}"
9+
310- name : config_storage_pools | defining storage pools
411 become : true
512 virt_pool :
916 register : kvm_pools_defined
1017 loop : " {{ kvm_storage_pools }}"
1118
12- - name : config_virtual networks | setting state of storage pools
19+ - name : config_storage pools | setting state of storage pools
1320 become : true
1421 virt_pool :
1522 name : " {{ item['name'] }}"
Original file line number Diff line number Diff line change 66 value : " {{ item['value'] }}"
77 state : " {{ item['state'] }}"
88 reload : true
9+ ignoreerrors : true
910 loop : " {{ kvm_sysctl_settings }}"
Original file line number Diff line number Diff line change 3535{% endif %}
3636{% if item ['vlans' ] is defined %}
3737{% for vl in item ['vlans' ] %}
38- <portgroup name =' {{ vl[' name ' ] }}' >
39- {% if not vl ['trunk' ] %}
38+ <portgroup name =' {{ vl[' name ' ] }}' {{ vl[ ' default' ] | default(false) | ternary( " default='yes'" , " " ) }} >
39+ {% if vl ['trunk' ] is undefined and vl ['default' ] | default (false ) %}
40+ </portgroup >
41+ {% elif not vl ['trunk' ] %}
4042 <vlan >
4143 <tag id =' {{ vl[' vlan ' ] }}' />
44+ </vlan >
45+ </portgroup >
4246{% elif vl ['trunk' ] %}
4347 <vlan trunk =' yes' >
4448{% for vlt in vl ['vlan' ] %}
4549 <tag id =' {{ vlt }}' />
4650{% endfor %}
47- {% endif %}
4851 </vlan >
49- </portgroup >
52+ </portgroup >
53+ {% endif %}
5054{% endfor %}
5155{% endif %}
5256{% if item ['vlan' ] is defined %}
You can’t perform that action at this time.
0 commit comments