From 471e252973f7d1b5d6eb485e8207ddd8a3a2f10d Mon Sep 17 00:00:00 2001 From: sean-freeman <1815807+sean-freeman@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:39:33 +0000 Subject: [PATCH] sap_rfc: missed changes --- galaxy.yml | 4 ++-- roles/sap_rfc/tasks/setup/nwrfcsdk_init.yml | 18 +++++++++--------- roles/sap_rfc/tasks/setup/python_init.yml | 1 + 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index d3eba8c..0030432 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -10,7 +10,7 @@ namespace: community name: sap_operations # The version of the collection. Must be compatible with semantic versioning -version: 1.0.0 +version: 0.9.1 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md @@ -28,7 +28,7 @@ description: Collection of Ansible Modules and Ansible Roles for SAP system oper # Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only # accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file' license: -- Apache-2.0 + - Apache-2.0 # The path to the license file for the collection. This path is relative to the root of the collection. This key is # mutually exclusive with 'license' diff --git a/roles/sap_rfc/tasks/setup/nwrfcsdk_init.yml b/roles/sap_rfc/tasks/setup/nwrfcsdk_init.yml index fe88216..e6d2c88 100644 --- a/roles/sap_rfc/tasks/setup/nwrfcsdk_init.yml +++ b/roles/sap_rfc/tasks/setup/nwrfcsdk_init.yml @@ -90,15 +90,15 @@ # src: "{{ __sap_rfc_nwrfc_lib_patch.files[0].path }}" # dest: "{{ __sap_rfc_nwrfc_lib.files[0].path }}" -# - name: Create ld.so.conf configuration file with path to compiled shared library (libsapnwrfc.so) -# ansible.builtin.copy: -# dest: /etc/ld.so.conf.d/nwrfcsdk.conf -# mode: '0444' -# content: | -# # include nwrfcsdk -# {{ __sap_rfc_nwrfc_lib.files[0].path | dirname }} -# # include /usr/sap (e.g. libstdc++.so.6) -# /usr/sap/lib +- name: Create ld.so.conf configuration file with path to compiled shared library (libsapnwrfc.so) + ansible.builtin.copy: + dest: /etc/ld.so.conf.d/nwrfcsdk.conf + mode: '0444' + content: | + # include nwrfcsdk + {{ __sap_rfc_nwrfc_lib.files[0].path | dirname }} + # include /usr/sap (e.g. libstdc++.so.6) + /usr/sap/lib - name: Reload system-wide library paths (ldconfig) ansible.builtin.shell: ldconfig diff --git a/roles/sap_rfc/tasks/setup/python_init.yml b/roles/sap_rfc/tasks/setup/python_init.yml index 824e597..1788674 100644 --- a/roles/sap_rfc/tasks/setup/python_init.yml +++ b/roles/sap_rfc/tasks/setup/python_init.yml @@ -8,6 +8,7 @@ - python39-pip - python39-wheel - python39-devel # Required for PyRFC compile with GCC + - python3-virtualenv # Use OS Package to allow non-root users to create Python virtual environment - gcc - glibc - gcc-c++