mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-07 07:58:25 +03:00
Addresses issue #10
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
This commit is contained in:
+11
-8
@@ -2,18 +2,21 @@
|
||||
- name: debian | installing pre-reqs
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
state: "present"
|
||||
become: true
|
||||
with_items:
|
||||
- lvm2
|
||||
- scsitools
|
||||
- xfsprogs
|
||||
- 'lvm2'
|
||||
- 'scsitools'
|
||||
- 'xfsprogs'
|
||||
|
||||
- name: debian | checking for scsi devices
|
||||
shell: sg_scan
|
||||
register: scsi_devices
|
||||
shell: "sg_scan"
|
||||
become: true
|
||||
register: "scsi_devices"
|
||||
changed_when: False
|
||||
|
||||
- name: debian | rescanning for new disks added
|
||||
command: /sbin/rescan-scsi-bus
|
||||
command: "/sbin/rescan-scsi-bus"
|
||||
become: true
|
||||
changed_when: False
|
||||
when: scsi_devices.stdout != ""
|
||||
when: scsi_devices['stdout'] != ""
|
||||
|
||||
Reference in New Issue
Block a user