|
@@ -4,13 +4,17 @@
|
|
dest: "{{ libvirt_storage_pool_path }}"
|
|
dest: "{{ libvirt_storage_pool_path }}"
|
|
state: directory
|
|
state: directory
|
|
|
|
|
|
|
|
+# We need to set permissions on the directory and any items created under the directory, so we need to call the acl module with and without default set.
|
|
- acl:
|
|
- acl:
|
|
- default: yes
|
|
|
|
|
|
+ default: "{{ item }}"
|
|
entity: kvm
|
|
entity: kvm
|
|
etype: group
|
|
etype: group
|
|
name: "{{ libvirt_storage_pool_path }}"
|
|
name: "{{ libvirt_storage_pool_path }}"
|
|
permissions: rwx
|
|
permissions: rwx
|
|
state: present
|
|
state: present
|
|
|
|
+ with_items:
|
|
|
|
+ - no
|
|
|
|
+ - yes
|
|
|
|
|
|
- name: Test if libvirt storage pool for openshift already exists
|
|
- name: Test if libvirt storage pool for openshift already exists
|
|
command: "virsh -c {{ libvirt_uri }} pool-info {{ libvirt_storage_pool }}"
|
|
command: "virsh -c {{ libvirt_uri }} pool-info {{ libvirt_storage_pool }}"
|