Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Ansible Lint Action
uses: ansible-community/ansible-lint-action@v6.0.2
uses: ansible/ansible-lint@v6
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@

- name: Relationship Validation - Define list of files
ansible.builtin.set_fact:
__sap_software_download_files: "{{ sap_software_download_files if not sap_software_download_find_alternatives
else __sap_software_download_files_results_dryrun.results | selectattr('failed', 'false')| map(attribute='filename') | list | unique | d([])}}"
__sap_software_download_files:
"{{ sap_software_download_files
if not sap_software_download_find_alternatives
else __sap_software_download_files_results_dryrun.results | selectattr('failed', 'false') | map(attribute='filename') | list | unique | d([]) }}"


- name: Relationship Validation - SAP HANA - Multiple IMDB_SERVER files found
Expand Down
37 changes: 19 additions & 18 deletions roles/sap_software_download/vars/SLES_15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,22 @@ __sap_software_download_python_package: >-

# The list of required Python Modules in packages
# This is required in order to avoid externally-managed-environment error.
__sap_software_download_python_module_packages: >-
{%- if ansible_distribution_version.split('.')[1] | int < 5 -%}
[
"python3-wheel",
"python3-urllib3",
"python3-requests",
"python3-beautifulsoup4",
"python3-lxml"
]
{%- else -%}
[
"python311-wheel",
"python311-urllib3",
"python311-requests",
"python311-beautifulsoup4",
"python311-lxml"
]
{%- endif -%}
__sap_software_download_python_module_packages:
"{{ __sap_software_download_python_module_packages_3
if ansible_distribution_version.split('.')[1] | int < 5
else __sap_software_download_python_module_packages_311 }}"

# The lists of Python Modules for specific python version
__sap_software_download_python_module_packages_3:
- "python3-wheel"
- "python3-urllib3"
- "python3-requests"
- "python3-beautifulsoup4"
- "python3-lxml"

__sap_software_download_python_module_packages_311:
- "python311-wheel"
- "python311-urllib3"
- "python311-requests"
- "python311-beautifulsoup4"
- "python311-lxml"