Manage SSL lib until Debian Stretch or Ubuntu Xenial

Fix #2
This commit is contained in:
Jeremy Gardais 2020-09-23 15:36:06 +02:00
parent 58be94860f
commit 640bc8d9ec
3 changed files with 28 additions and 2 deletions

View File

@ -5,6 +5,7 @@
* Skip "Ensure to remove OpenManage related packages if requested" when it's not install (with package facts). * Skip "Ensure to remove OpenManage related packages if requested" when it's not install (with package facts).
* Repositories for Debian Jessie and Ubuntu Trusty won't need modifications with new OS versions. * Repositories for Debian Jessie and Ubuntu Trusty won't need modifications with new OS versions.
* Add support for Debian Buster and (not tested) Ubuntu Bionic. * Add support for Debian Buster and (not tested) Ubuntu Bionic.
* Manage SSL lib until Debian Stretch or Ubuntu Xenial (fix #2).
## v1.2.0 ## v1.2.0

View File

@ -87,7 +87,6 @@ openmanage__dep_packages:
# List of base packages to install. # List of base packages to install.
# #
openmanage__base_packages: openmanage__base_packages:
- 'libssl1.0.0'
- 'srvadmin-base' - 'srvadmin-base'
- 'srvadmin-idracadm7' - 'srvadmin-idracadm7'
- 'srvadmin-idracadm8' - 'srvadmin-idracadm8'
@ -98,6 +97,16 @@ openmanage__base_packages:
- 'srvadmin-server-snmp' - 'srvadmin-server-snmp'
- 'srvadmin-storageservices' - 'srvadmin-storageservices'
# ]]] # ]]]
# .. envvar:: openmanage__ssl_packages [[[
#
# List of SSL related packages to install.
#
# Required until Debian Stretch and Ubuntu Xenial
# to fix some dependencies
#
openmanage__ssl_packages:
- 'libssl1.0.0'
# ]]]
# .. envvar:: openmanage__webgui_state [[[ # .. envvar:: openmanage__webgui_state [[[
# #
# What is the desired state for web interface of OMSA? Possible options: # What is the desired state for web interface of OMSA? Possible options:

View File

@ -56,6 +56,20 @@
until: pkg_dep_result is success until: pkg_dep_result is success
when: (openmanage__deploy_state == "present") when: (openmanage__deploy_state == "present")
## Manage SSL packages
- name: Ensure SSL required packages are present
package:
name: '{{ item }}'
state: "present"
install_recommends: '{{ openmanage__install_recommends | bool }}'
with_flattened:
- '{{ openmanage__ssl_packages | to_nice_json }}'
register: pkg_ssl_result
until: pkg_ssl_result is success
when: (openmanage__deploy_state == "present" and
( (ansible_distribution == "Debian" and ansible_distribution_major_version is version("9", "<=")) or
(ansible_distribution == "Ubuntu" and ansible_distribution_version is version("16.04", "<=")))
## Manage base system packages ## Manage base system packages
- name: Ensure base packages are in there desired state - name: Ensure base packages are in there desired state
package: package:
@ -110,7 +124,9 @@
src: "/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2" src: "/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2"
path: "/opt/dell/srvadmin/lib64/libssl.so" path: "/opt/dell/srvadmin/lib64/libssl.so"
state: link state: link
when: (openmanage__deploy_state == "present") when: (openmanage__deploy_state == "present" and
( (ansible_distribution == "Debian" and ansible_distribution_major_version is version("9", "<=")) or
(ansible_distribution == "Ubuntu" and ansible_distribution_version is version("16.04", "<=")))
## Manage symlinks for OpenManage/racadm apps ## Manage symlinks for OpenManage/racadm apps
- name: Ensure some Executables are in PATH - name: Ensure some Executables are in PATH