blob: b84f2d0d450a311d1108e8db644c04a66752e1fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
- name: create zfs base datasets
loop: "{{ lookup('dict', vm_host.zfs, wantlist=True) }}"
loop_control:
label: "{{ item.key }} -> {{ item.value.pool }}/{{ item.value.name }} ({{ (item.value.properties | default({})).items() | map('join', '=') | join(', ') }})"
vars:
default_properties:
canmount: no
mountpoint: none
zfs:
name: "{{ item.value.pool }}/{{ item.value.name }}"
state: present
extra_zfs_properties: "{{ default_properties | combine(item.value.properties | default({})) }}"
- name: configure lvm to ignore zfs volumes
lineinfile:
path: /etc/lvm/lvm.conf
backrefs: yes
regexp: '^\s*#?\s*global_filter\s*='
line: ' global_filter = [ "r|/dev/zd[0-9]+|" ]'
|