Addresses issue #10

Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
This commit is contained in:
Larry Smith Jr
2017-06-11 14:57:53 -04:00
parent 26ed7d826c
commit 386cc28bdb
7 changed files with 295 additions and 274 deletions
+11 -8
View File
@@ -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'] != ""