New role to deal with the Dell hardware utilities

This commit is contained in:
Andrea Dell'Amico 2019-01-23 13:10:13 +01:00
parent 47c7c4ab87
commit 8e0c1ed830
4 changed files with 43 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
---

View File

@ -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' ]

View File

@ -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"