* Fix: lint

This commit is contained in:
Roxyrob
2021-03-17 01:40:26 +01:00
parent 1d57a469b0
commit e4bc8a9e9b
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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