From e4bc8a9e9b6bac147b6430b38659bd28cc96461e Mon Sep 17 00:00:00 2001 From: Roxyrob <22431069+Roxyrob@users.noreply.github.com> Date: Wed, 17 Mar 2021 01:40:26 +0100 Subject: [PATCH] * Fix: lint --- tasks/centos.yml | 4 ++-- tasks/create_vg.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/centos.yml b/tasks/centos.yml index 2179416..47ee01c 100644 --- a/tasks/centos.yml +++ b/tasks/centos.yml @@ -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 diff --git a/tasks/create_vg.yml b/tasks/create_vg.yml index 0d28008..853f0fd 100644 --- a/tasks/create_vg.yml +++ b/tasks/create_vg.yml @@ -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