forked from ISTI-ansible-roles/ansible-roles
Fixes for ubuntu focal
This commit is contained in:
parent
0de2ad31c1
commit
ef5c8ce1f3
|
@ -4,7 +4,7 @@ dell_utilities_base_dir: /opt/dell_dsu
|
||||||
dell_utilities_packages:
|
dell_utilities_packages:
|
||||||
- dell-system-update
|
- dell-system-update
|
||||||
- srvadmin-all
|
- srvadmin-all
|
||||||
- syscfg
|
#- syscfg
|
||||||
|
|
||||||
dell_utilities_raid_packages:
|
dell_utilities_raid_packages:
|
||||||
- raidcfg
|
- raidcfg
|
||||||
|
|
|
@ -3,11 +3,20 @@
|
||||||
- name: Create the Dell utilities directory
|
- name: Create the Dell utilities directory
|
||||||
file: dest={{ dell_utilities_base_dir }} state=directory
|
file: dest={{ dell_utilities_base_dir }} state=directory
|
||||||
|
|
||||||
|
- name: Check if the Dell utility installer is already present
|
||||||
|
stat:
|
||||||
|
path: /opt/dell_dsu/dsu_installer
|
||||||
|
register: dell_dsu_installer_bin
|
||||||
|
|
||||||
- name: Download the Dell utility installer
|
- name: Download the Dell utility installer
|
||||||
get_url: url={{ dell_utilities_installer_url }} dest={{ dell_utilities_base_dir }}/dsu_installer mode=0700
|
get_url: url={{ dell_utilities_installer_url }} dest={{ dell_utilities_base_dir }}/dsu_installer mode=0700
|
||||||
|
when: not dell_dsu_installer_bin.stat.exists
|
||||||
|
|
||||||
- name: Run the installer
|
- name: Run the installer
|
||||||
command: '{{ dell_utilities_base_dir }}/dsu_installer'
|
shell: >
|
||||||
|
{{ dell_utilities_base_dir }}/dsu_installer && touch {{ dell_utilities_base_dir }}/.dsu_installer_run
|
||||||
|
args:
|
||||||
|
creates: '{{ dell_utilities_base_dir }}/.dsu_installer_run'
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- "'Dell' in ansible_system_vendor"
|
- "'Dell' in ansible_system_vendor"
|
||||||
|
|
|
@ -37,7 +37,7 @@ default_python_packages_trusty:
|
||||||
- python-lxml
|
- python-lxml
|
||||||
- python-boto
|
- python-boto
|
||||||
|
|
||||||
default_python_packages:
|
default_python_packages_bionic:
|
||||||
- python-lxml
|
- python-lxml
|
||||||
- python3-lxml
|
- python3-lxml
|
||||||
- python-boto
|
- python-boto
|
||||||
|
@ -45,6 +45,14 @@ default_python_packages:
|
||||||
- python-setuptools
|
- python-setuptools
|
||||||
- python3-setuptools
|
- python3-setuptools
|
||||||
|
|
||||||
|
default_python_packages_focal:
|
||||||
|
- python-lxml
|
||||||
|
- python3-lxml
|
||||||
|
- python-ipaddress
|
||||||
|
- python3-ipaddr
|
||||||
|
- python-setuptools
|
||||||
|
- python3-setuptools
|
||||||
|
|
||||||
# Set this variable in your playbook
|
# Set this variable in your playbook
|
||||||
# additional_packages:
|
# additional_packages:
|
||||||
# - pkg1
|
# - pkg1
|
||||||
|
|
|
@ -3,13 +3,6 @@
|
||||||
apt: pkg=aptitude state=present cache_valid_time=1800
|
apt: pkg=aptitude state=present cache_valid_time=1800
|
||||||
tags: packages
|
tags: packages
|
||||||
|
|
||||||
- name: Install the basic python packages. Not Trusty
|
|
||||||
apt: pkg={{ default_python_packages }} state=present cache_valid_time=1800
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Ubuntu"
|
|
||||||
- ansible_distribution_release != "trusty"
|
|
||||||
tags: packages
|
|
||||||
|
|
||||||
- name: Install the basic python packages on trusty
|
- name: Install the basic python packages on trusty
|
||||||
apt: pkg={{ default_python_packages_trusty }} state=present update_cache=yes cache_valid_time=1800
|
apt: pkg={{ default_python_packages_trusty }} state=present update_cache=yes cache_valid_time=1800
|
||||||
when:
|
when:
|
||||||
|
@ -17,6 +10,20 @@
|
||||||
- ansible_distribution_release == "trusty"
|
- ansible_distribution_release == "trusty"
|
||||||
tags: packages
|
tags: packages
|
||||||
|
|
||||||
|
- name: Install the basic python packages on Ubuntu Bionic
|
||||||
|
apt: pkg={{ default_python_packages_bionic }} state=present cache_valid_time=1800
|
||||||
|
when:
|
||||||
|
- ansible_distribution == "Ubuntu"
|
||||||
|
- ansible_distribution_release == "bionic"
|
||||||
|
tags: packages
|
||||||
|
|
||||||
|
- name: Install the basic python packages on Ubuntu Focal
|
||||||
|
apt: pkg={{ default_python_packages_focal }} state=present cache_valid_time=1800
|
||||||
|
when:
|
||||||
|
- ansible_distribution == "Ubuntu"
|
||||||
|
- ansible_distribution_release == "focal"
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: Install software-properties-common if needed
|
- name: Install software-properties-common if needed
|
||||||
apt: pkg=software-properties-common state=present update_cache=yes cache_valid_time=1800
|
apt: pkg=software-properties-common state=present update_cache=yes cache_valid_time=1800
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue