mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 05:04:22 -07:00
Renamed test VG and LV names
This commit is contained in:
parent
80fd68c39d
commit
b28baac61d
2 changed files with 12 additions and 12 deletions
|
@ -45,39 +45,39 @@
|
||||||
ansible.builtin.command: pvs --noheadings -o pv_size --units M {{ loop_device_02.stdout }}
|
ansible.builtin.command: pvs --noheadings -o pv_size --units M {{ loop_device_02.stdout }}
|
||||||
register: pv_size_output_02
|
register: pv_size_output_02
|
||||||
|
|
||||||
- name: Making sure volume group vg_tmp_test does not exist
|
- name: Making sure volume group testvg does not exist
|
||||||
community.general.lvg:
|
community.general.lvg:
|
||||||
vg: vg_tmp_test
|
vg: testvg
|
||||||
force: true
|
force: true
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Creating volume group on top of first device {{ loop_device_01.stdout }}
|
- name: Creating volume group on top of first device {{ loop_device_01.stdout }}
|
||||||
community.general.lvg:
|
community.general.lvg:
|
||||||
vg: vg_tmp_test
|
vg: testvg
|
||||||
pvs: "{{ loop_device_01.stdout }}"
|
pvs: "{{ loop_device_01.stdout }}"
|
||||||
force: true
|
force: true
|
||||||
register: vg_creation_result
|
register: vg_creation_result
|
||||||
|
|
||||||
- name: Creating LV lv_tmp_test on VG vg_tmp_test
|
- name: Creating LV testlv on VG testvg
|
||||||
community.general.lvol:
|
community.general.lvol:
|
||||||
vg: vg_tmp_test
|
vg: testvg
|
||||||
lv: lv_tmp_test
|
lv: testlv
|
||||||
size: 100%FREE
|
size: 100%FREE
|
||||||
force: true
|
force: true
|
||||||
register: lv_creation_result
|
register: lv_creation_result
|
||||||
|
|
||||||
- name: Creating xfs filesystem on LV lv_tmp_test
|
- name: Creating xfs filesystem on LV testlv
|
||||||
community.general.filesystem:
|
community.general.filesystem:
|
||||||
dev: /dev/vg_tmp_test/lv_tmp_test
|
dev: /dev/testvg/testlv
|
||||||
fstype: xfs
|
fstype: xfs
|
||||||
state: present
|
state: present
|
||||||
register: fs_creation_result
|
register: fs_creation_result
|
||||||
|
|
||||||
- name: Mounting LV lv_tmp_test
|
- name: Mounting LV testlv
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
fstab: '{{ remote_tmp_dir }}/fstab'
|
fstab: '{{ remote_tmp_dir }}/fstab'
|
||||||
path: '{{ remote_tmp_dir }}/tmp_mount'
|
path: '{{ remote_tmp_dir }}/tmp_mount'
|
||||||
src: '/dev/vg_tmp_test/lv_tmp_test'
|
src: '/dev/testvg/testlv'
|
||||||
fstype: xfs
|
fstype: xfs
|
||||||
opts: rw,noauto
|
opts: rw,noauto
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
args:
|
args:
|
||||||
creates: "{{ remote_tmp_dir }}/tmp_mount/test_file"
|
creates: "{{ remote_tmp_dir }}/tmp_mount/test_file"
|
||||||
|
|
||||||
- name: Extending VG vg_tmp_test with second device {{ loop_device_02.stdout }}
|
- name: Extending VG testvg with second device {{ loop_device_02.stdout }}
|
||||||
community.general.lvg:
|
community.general.lvg:
|
||||||
vg: vg_tmp_test
|
vg: testvg
|
||||||
pvs: "{{ loop_device_02.stdout }}"
|
pvs: "{{ loop_device_02.stdout }}"
|
||||||
|
|
||||||
- name: Moving data from {{ loop_device_01.stdout }} to {{ loop_device_02.stdout }} (both in same VG)
|
- name: Moving data from {{ loop_device_01.stdout }} to {{ loop_device_02.stdout }} (both in same VG)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue