| 1 |
# community.sap_libs Ansible Collection |
| 2 |
|
| 3 |
[](https://github.com/sap-linuxlab/community.sap_libs/actions) [](https://codecov.io/gh/sap-linuxlab/community.sap_libs) |
| 4 |
|
| 5 |
## Description |
| 6 |
This Ansible Collection provides a set of Ansible Modules designed to automate various low-level activities on SAP systems. |
| 7 |
|
| 8 |
It was migrated from repository `ansible-collections/community.sap`. |
| 9 |
|
| 10 |
## Requirements |
| 11 |
Some modules have external dependencies. |
| 12 |
- `SAPCAR` binaries are required for: |
| 13 |
- `sapcar_extract` |
| 14 |
|
| 15 |
- Python Library `pyrfc >= 2.4.0` is required for: |
| 16 |
- `sap_company` |
| 17 |
- `sap_snote` |
| 18 |
- `sap_task_list_execute` |
| 19 |
- `sap_user` |
| 20 |
- `sap_pyrfc` |
| 21 |
|
| 22 |
### Important: PyRFC dependency is deprecated |
| 23 |
**SAP has discontinued development on `PyRFC` in 2024.** |
| 24 |
You can find more details in the [announcement](https://github.com/SAP-archive/PyRFC/issues/372) or in [deprecation notice](https://github.com/SAP-archive/PyRFC?tab=readme-ov-file#deprecation-notice). |
| 25 |
|
| 26 |
The `PyRFC` library is a critical dependency for several modules in this collection, as it is a Python wrapper for the `SAP NW RFC SDK` libraries. While both `PyRFC` and the `SAP NW RFC SDK` are still available for installation and download at this time, their deprecation means they could be removed without notice. |
| 27 |
|
| 28 |
We will continue to support the modules that depend on `PyRFC` for as long as both the `PyRFC` library and the `SAP NW RFC SDK` remain available. However, the moment either of them becomes unavailable, we will be forced to cease support for these modules, as they will no longer be functional. |
| 29 |
|
| 30 |
We are investigating potential alternatives, but there is no clear path forward at this time. Users should be aware of this risk when using the affected modules. |
| 31 |
|
| 32 |
## Installation Instructions |
| 33 |
|
| 34 |
### Installation |
| 35 |
Install this collection with Ansible Galaxy command: |
| 36 |
```console |
| 37 |
ansible-galaxy collection install community.sap_libs |
| 38 |
``` |
| 39 |
|
| 40 |
### Upgrade |
| 41 |
Installed Ansible Collection will not be upgraded automatically when Ansible package is upgraded. |
| 42 |
|
| 43 |
To upgrade the collection to the latest available version, run the following command: |
| 44 |
```console |
| 45 |
ansible-galaxy collection install community.sap_libs --upgrade |
| 46 |
``` |
| 47 |
|
| 48 |
You can also install a specific version of the collection, when you encounter issues with latest version. Please report these issues in affected Role repository if that happens. |
| 49 |
Example of downgrading collection to version 1.4.0: |
| 50 |
``` |
| 51 |
ansible-galaxy collection install community.sap_libs:==1.4.0 |
| 52 |
``` |
| 53 |
|
| 54 |
See [Installing collections](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html) for more details on installation methods. |
| 55 |
|
| 56 |
## Ansible Modules |
| 57 |
The following Ansible Modules are included in this collection. |
| 58 |
- [sap_hdbsql](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_hdbsql_module.html) |
| 59 |
- [sap_task_list_execute](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_task_list_execute_module.html) |
| 60 |
- [sapcar_extract](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sapcar_extract_module.html) |
| 61 |
- [sap_company](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_company_module.html) |
| 62 |
- [sap_snote](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_snote_module.html) |
| 63 |
- [sap_user](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_user_module.html) |
| 64 |
- [sap_system_facts](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_system_facts_module.html) |
| 65 |
- [sap_control_exec](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_control_exec_module.html) |
| 66 |
- [sap_pyrfc](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_pyrfc_module.html) |
| 67 |
|
| 68 |
## Testing |
| 69 |
This Ansible Collection was tested across different versions of Ansible and Python. |
| 70 |
The automated [CI](https://github.com/sap-linuxlab/community.sap_libs/blob/main/.github/workflows/ansible-test.yml) workflow is executing Sanity and Unit tests on following versions. |
| 71 |
|
| 72 |
Supported ansible-core versions: |
| 73 |
- `2.18` with Python `3.11 - 3.13` |
| 74 |
- `2.19` with Python `3.11 - 3.13` |
| 75 |
- `devel` with Python `3.11 - 3.13` |
| 76 |
|
| 77 |
End-of-life ansible-core versions are only tested for backwards compatibility. |
| 78 |
- `2.14` with Python `3.9 - 3.11` |
| 79 |
- `2.15` with Python `3.9 - 3.11` |
| 80 |
- `2.16` with Python `3.10 - 3.12` |
| 81 |
- `2.17` with Python `3.10 - 3.12` |
| 82 |
|
| 83 |
**Support for Python 2 has been dropped in release `1.5.0`.** |
| 84 |
|
| 85 |
Due to SAP licensing and hardware requirements, integration tests are momentarily not feasible. |
| 86 |
The modules are tested manually against SAP systems until we found a solution or have some |
| 87 |
modules where we are able to execute integration test we decided to disable these tests. |
| 88 |
|
| 89 |
**NOTE:** All tests combinations were configured following official [ansible-core-support-matrix](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix). |
| 90 |
|
| 91 |
## Maintainers |
| 92 |
You can find more information about maintainers of this Ansible Collection at [MAINTAINERS.md](https://github.com/sap-linuxlab/community.sap_libs/blob/main/MAINTAINERS.md). |
| 93 |
|
| 94 |
## Contributing |
| 95 |
We welcome contributions to this collection. For a list of all contributors and information on how you can get involved, please see our [CONTRIBUTORS document](./CONTRIBUTORS.md). |
| 96 |
|
| 97 |
## Support |
| 98 |
You can report any issues using [Issues](https://github.com/sap-linuxlab/community.sap_libs/issues) section. |
| 99 |
|
| 100 |
## Release Notes and Roadmap |
| 101 |
The release notes for this collection can be found in the [CHANGELOG file](https://github.com/sap-linuxlab/community.sap_libs/blob/main/CHANGELOG.rst). |
| 102 |
|
| 103 |
|
| 104 |
## Further Information |
| 105 |
|
| 106 |
### Additional sources |
| 107 |
You can find more information at following sources: |
| 108 |
- [Ansible User guide](https://docs.ansible.com/ansible/devel/user_guide/index.html) |
| 109 |
- [Ansible Developer guide](https://docs.ansible.com/ansible/devel/dev_guide/index.html) |
| 110 |
- [Ansible Community Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html) |
| 111 |
- [News for Maintainers](https://github.com/ansible-collections/news-for-maintainers) |
| 112 |
|
| 113 |
## License |
| 114 |
[Apache 2.0](https://github.com/sap-linuxlab/community.sap_libs/blob/main/LICENSE) |