19 lines
457 B
YAML
19 lines
457 B
YAML
# Facts will be available as 'ansible_libvirt_pools'
|
|
- name: initially gather facts on existing virsh pool
|
|
virt_pool:
|
|
command: facts
|
|
uri: "{{ libvirt_uri }}"
|
|
|
|
- name: define storage the storage pool
|
|
virt_pool:
|
|
state: present
|
|
name: "{{ item.name }}"
|
|
uri: "{{ libvirt_uri }}"
|
|
xml: "{{item.libvirtTemplate}}"
|
|
|
|
- name: activate the storage pool
|
|
virt_pool:
|
|
state: active
|
|
name: "{{ item.name }}"
|
|
uri: "{{ libvirt_uri }}"
|