mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-06 23:48:12 +03:00
* Fix: lint
This commit is contained in:
+2
-2
@@ -114,10 +114,10 @@
|
|||||||
command: /usr/bin/rescan-scsi-bus.sh
|
command: /usr/bin/rescan-scsi-bus.sh
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: scsi_devices.stdout != ""
|
when: scsi_devices.stdout|length > 0
|
||||||
|
|
||||||
- name: centos | rescanning for resized disks
|
- name: centos | rescanning for resized disks
|
||||||
command: /usr/bin/rescan-scsi-bus.sh -s
|
command: /usr/bin/rescan-scsi-bus.sh -s
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: scsi_devices.stdout != ""
|
when: scsi_devices.stdout|length > 0
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
### workaround: auto pvresize waiting for upgrade to new module supporting integrated pvresize
|
### workaround: auto pvresize waiting for upgrade to new module supporting integrated pvresize
|
||||||
### ref: https://docs.ansible.com/ansible/3/collections/community/general/lvg_module.html
|
### ref: https://docs.ansible.com/ansible/3/collections/community/general/lvg_module.html
|
||||||
- name: create_vg | pvresize to max (implemented from ansible 2.10 and above)
|
- name: create_vg | pvresize to max (implemented from ansible 2.10 and above)
|
||||||
shell: "pvresize {{ pv }}"
|
command: "pvresize {{ pv }}"
|
||||||
loop: "{{ vg.disks | default([]) }}"
|
loop: "{{ vg.disks | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: pv
|
loop_var: pv
|
||||||
|
|||||||
Reference in New Issue
Block a user