updated lvg
diff --git a/tasks/main.yml b/tasks/main.yml
index 2a0e801..d4fd213 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -12,6 +12,9 @@
- name: Re-read partition table
shell: /usr/sbin/partprobe
+- name: Create physical volume from partion
+ shell: "/usr/sbin/pvcreate {{ device_path }}{{ partnum}}"
+
#- name: Create physical volume and extend volume group from partition
# lvg:
# pvs: "{{ device_path }}{{ partnum }}"
@@ -20,7 +23,7 @@
- name: Extend local volume from added physical volume
lvol:
vg: "{{ volume_name }}"
- lv: "/dev/{{ volume_name }}/{{ logical_volume_name }}"
+ lv: "{{ logical_volume_name }}"
pvs: "{{ device_path }}{{ partnum }}"
shrink: no
state: present