mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-14 13:54:58 +03:00
* Fix: lint
This commit is contained in:
@@ -114,10 +114,10 @@
|
||||
command: /usr/bin/rescan-scsi-bus.sh
|
||||
become: true
|
||||
changed_when: false
|
||||
when: scsi_devices.stdout != ""
|
||||
when: scsi_devices.stdout|length > 0
|
||||
|
||||
- name: centos | rescanning for resized disks
|
||||
command: /usr/bin/rescan-scsi-bus.sh -s
|
||||
become: true
|
||||
changed_when: false
|
||||
when: scsi_devices.stdout != ""
|
||||
when: scsi_devices.stdout|length > 0
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
### 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
|
||||
- name: create_vg | pvresize to max (implemented from ansible 2.10 and above)
|
||||
shell: "pvresize {{ pv }}"
|
||||
command: "pvresize {{ pv }}"
|
||||
loop: "{{ vg.disks | default([]) }}"
|
||||
loop_control:
|
||||
loop_var: pv
|
||||
|
||||
Reference in New Issue
Block a user