|
@@ -1,8 +1,20 @@ |
|
|
--- |
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
- setup: |
|
|
|
|
|
gather_subset: "!all" |
|
|
|
|
|
|
|
|
|
|
|
- name: debian apt install packages |
|
|
|
|
|
apt: |
|
|
|
|
|
pkg: "{{ item }}" |
|
|
|
|
|
state: installed |
|
|
|
|
|
with_items: |
|
|
|
|
|
- lvm2 |
|
|
|
|
|
when: ansible_os_family == "Debian" |
|
|
|
|
|
|
|
|
- name: volume groups |
|
|
- name: volume groups |
|
|
lvg: |
|
|
lvg: |
|
|
vg: "{{ item.name }}" |
|
|
vg: "{{ item.name }}" |
|
|
pvs: "{{ item.devices | join(',') }}" |
|
|
pvs: "{{ item.devices | join(',') }}" |
|
|
state: present |
|
|
|
|
|
|
|
|
state: "{{ volume_groups_state }}" |
|
|
with_items: "{{ volume_groups }}" |
|
|
with_items: "{{ volume_groups }}" |
|
|
|
|
|
|