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 091462b commit 587dfe1Copy full SHA for 587dfe1
roles/testnode/tasks/configure_lvm.yml
@@ -59,15 +59,15 @@
59
pvs: "{{ item.value.pvs }}"
60
state: present
61
with_dict: "{{ volume_groups }}"
62
- when: volume_groups is defined
+ when: volume_groups is defined and item.key not in ansible_facts.lvm.vgs
63
64
- name: "Create logical volume(s)"
65
lvol:
66
vg: "{{ item.value.vg }}"
67
lv: "{{ item.key }}"
68
size: "{{ item.value.size }}"
69
with_dict: "{{ logical_volumes }}"
70
- when: logical_volumes is defined
+ when: logical_volumes is defined and item.key not in ansible_facts.lvm.lvs
71
72
- name: "Erase /scratch_devs so we know it's accurate"
73
file:
0 commit comments