enh: Add variable rescan_scsi_command

This commit is contained in:
Samuel Mutel
2022-04-11 12:02:49 +02:00
parent 1f966d2ea1
commit 6e74c9714e
4 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -55,13 +55,13 @@
changed_when: false
- name: centos | rescanning for new disks
command: /usr/bin/rescan-scsi-bus.sh
command: "{{ rescan_scsi_command }}"
become: true
changed_when: false
when: scsi_devices.stdout|length > 0
- name: centos | rescanning for resized disks
command: /usr/bin/rescan-scsi-bus.sh -s
command: "{{ rescan_scsi_command }} -s"
become: true
changed_when: false
when: scsi_devices.stdout|length > 0