mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 05:04:22 -07:00
Remove test VG if exists
This commit is contained in:
parent
e5d08539fe
commit
eb37c64189
1 changed files with 5 additions and 3 deletions
|
@ -45,6 +45,11 @@
|
|||
ansible.builtin.command: pvs --noheadings -o pv_size --units M {{ loop_device_02.stdout }}
|
||||
register: pv_size_output_02
|
||||
|
||||
- name: Making sure volume group vg_tmp_test does not exist
|
||||
community.general.lvg:
|
||||
vg: vg_tmp_test
|
||||
state: absent
|
||||
|
||||
- name: Creating volume group on top of first device {{ loop_device_01.stdout }}
|
||||
community.general.lvg:
|
||||
vg: vg_tmp_test
|
||||
|
@ -66,9 +71,6 @@
|
|||
state: present
|
||||
register: fs_creation_result
|
||||
|
||||
#- name: Mounting LV lv_tmp_test to {{ remote_tmp_dir }}/tmp_mount
|
||||
# ansible.builtin.shell: mount -o rw,noauto /dev/vg_tmp_test/lv_tmp_test {{ remote_tmp_dir }}/tmp_mount
|
||||
|
||||
- name: Mounting LV lv_tmp_test
|
||||
ansible.posix.mount:
|
||||
fstab: '{{ remote_tmp_dir }}/fstab'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue