From 19e56ac7d840f404f70a81f09f447ac343b81f58 Mon Sep 17 00:00:00 2001 From: Roxyrob <22431069+Roxyrob@users.noreply.github.com> Date: Wed, 17 Mar 2021 01:24:15 +0100 Subject: [PATCH] * Fix: improve centos7/8 recognize scsi disk resize without reboot --- tasks/centos.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/centos.yml b/tasks/centos.yml index 37db910..2179416 100644 --- a/tasks/centos.yml +++ b/tasks/centos.yml @@ -114,3 +114,10 @@ command: /usr/bin/rescan-scsi-bus.sh become: true changed_when: false + when: scsi_devices.stdout != "" + +- name: centos | rescanning for resized disks + command: /usr/bin/rescan-scsi-bus.sh -s + become: true + changed_when: false + when: scsi_devices.stdout != ""