-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstorcli-installation.yml
59 lines (50 loc) · 1.56 KB
/
storcli-installation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# file: storcli-installation.yml
# execution:
# $ ansible-playbook storcli-installation.yml --limit osds
---
- hosts: all
gather_facts: no
tasks:
- name: Create install directory
file:
path: /root/LSI_storcli
state: directory
# - name: Download storcli
# environment:
# http_proxy: http://rhclient1:3128 #PenguinComputing
# https_proxy: http://rhclient1:3128 #PenguinComputing
# get_url:
# url: https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/1.21.16_StorCLI.zip
# dest: /root/LSI_storcli/1.21.16_StorCLI.zip
#
# - name: Unzip storcli (level 1)
# unarchive:
# src: /root/LSI_storcli/1.21.16_StorCLI.zip
# dest: /root/LSI_storcli/
- name: Download and unzip storcli (level 1)
unarchive:
remote_src: true
# Updated URL March 6th, 2018
src: https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/1.21.16_StorCLI.zip
dest: /root/LSI_storcli/
- name: Find the zip inside the zip
find:
path: /root/LSI_storcli/
recurse: yes
pattern: '*.zip'
register: result
- debug: var=result.files
- name: Unzip storcli (level 2)
unarchive:
src: "{{ result.files }}"
dest: /root/LSI_storcli2/
- name: Install RPM
yum:
state: present
name: /root/LSI_storcli/storcli_All_OS/Linux/storcli-1.21.06-1.noarch.rpm
- name: Create symlink to /usr/sbin
file:
state: link
src: /opt/MegaRAID/storcli/storcli64
dest: /usr/sbin/storcli
tags: [ test ]