We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361041a commit 3ff7d65Copy full SHA for 3ff7d65
tasks/pools.yml
@@ -42,3 +42,24 @@
42
uri: "{{ libvirt_host_uri | default(omit, true) }}"
43
with_items: "{{ libvirt_host_pools }}"
44
become: True
45
+
46
+- name: "Create custom fact directory"
47
+ file:
48
+ path: "/etc/ansible/facts.d"
49
+ state: "directory"
50
+ when: item.type == "zfs"
51
+ with_items: "{{ libvirt_host_pools }}"
52
+ become: True
53
54
+- name: Create Ansible fact for zfs pool to path mapping
55
+ ini_file:
56
+ path: /etc/ansible/facts.d/zfs-pool.fact
57
+ section: null
58
+ option: "{{ item.name }}"
59
+ value: "{{ item.source }}"
60
61
62
63
64
+- name: reload facts
65
+ setup: ~
0 commit comments