forked from ISTI-ansible-roles/ansible-roles
New role to deal with the Dell hardware utilities
This commit is contained in:
parent
47c7c4ab87
commit
8e0c1ed830
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
dell_utilities_installer_url: http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi
|
||||||
|
dell_utilities_base_dir: /opt/dell_dsu
|
||||||
|
dell_utilities_packages:
|
||||||
|
- dell-system-update
|
||||||
|
- srvadmin-all
|
||||||
|
- syscfg
|
||||||
|
|
||||||
|
dell_utilities_raid_packages:
|
||||||
|
- raidcfg
|
|
@ -0,0 +1 @@
|
||||||
|
---
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- block:
|
||||||
|
- name: Install the RH/CentOS Dell utilities
|
||||||
|
yum: pkg={{ dell_utilities_packages }} state=latest
|
||||||
|
|
||||||
|
when:
|
||||||
|
- "'Dell' in ansible_system_vendor"
|
||||||
|
#- ansible_system_vendor.stdout.find('Dell') != -1
|
||||||
|
- ansible_virtualization_role == "host"
|
||||||
|
tags: [ 'dell_utilities', 'dell_dsu' ]
|
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
- block:
|
||||||
|
- name: Create the Dell utilities directory
|
||||||
|
file: dest={{ dell_utilities_base_dir }} state=directory
|
||||||
|
|
||||||
|
- name: Download the Dell utility installer
|
||||||
|
get_url: url={{ dell_utilities_installer_url }} dest={{ dell_utilities_base_dir }}/dsu_installer mode=0700
|
||||||
|
|
||||||
|
- name: Run the installer
|
||||||
|
command: '{{ dell_utilities_base_dir }}/dsu_installer'
|
||||||
|
|
||||||
|
when:
|
||||||
|
- "'Dell' in ansible_system_vendor"
|
||||||
|
#- ansible_system_vendor.stdout.find('Dell') != -1
|
||||||
|
- ansible_virtualization_role == "host"
|
||||||
|
tags: [ 'dell_utilities', 'dell_dsu' ]
|
||||||
|
|
||||||
|
- import_tasks: dsu_rh.yml
|
||||||
|
when: ansible_distribution_file_variety == "RedHat"
|
||||||
|
|
||||||
|
- import_tasks: dsu_deb.yml
|
||||||
|
when: ansible_distribution_file_variety == "Debian"
|
Loading…
Reference in New Issue