community.sap_libs.sap_snote module – This module will upload and (de)implements SNOTES in a SAP S4HANA environment.
Note
This module is part of the community.sap_libs collection (version 1.5.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.sap_libs.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.sap_libs.sap_snote.
New in community.sap_libs 1.0.0
Synopsis
- The - sap_snotemodule depends on- pyrfcPython library (version 2.4.0 and upwards). Depending on distribution you are using, you may need to install additional packages to have these available.
- This module will use the Function Group - SCWB_API.
- The - TMSmust be configured at first.
- Integrating SNOTES cannot be done via - DDIC- or- SAP*-User.
Requirements
The below requirements are needed on the host that executes this module.
- pyrfc >= 2.4.0 
Parameters
| Parameter | Comments | 
|---|---|
| The client number to connect to. You must quote the value to ensure retaining the leading zeros. Default:  | |
| The required password for the SAP system. | |
| The required username for the SAP system. | |
| The required host for the SAP system. Can be either an FQDN or IP Address. | |
| With the  Upload SNOTES to the System is only available if  | |
| The path to the extracted SNOTE txt file. The File could be extracted from SAR package. If  The SNOTE txt file must be at a place where the SAP System is authorized for. For example  | |
| The decision what to do with the SNOTE. Could be  Choices: 
 | |
| The system number of the SAP system. You must quote the value to ensure retaining the leading zeros. Default:  | 
Examples
- name: test snote module
  hosts: localhost
  tasks:
  - name: implement SNOTE
    community.sap_libs.sap_snote:
      conn_username: 'DDIC'
      conn_password: 'Passwd1234'
      host: 192.168.1.100
      sysnr: '01'
      client: '000'
      state: present
      snote_path: /usr/sap/trans/tmp/0002949148.txt
- name: test snote module without path
  hosts: localhost
  tasks:
  - name: deimplement SNOTE
    community.sap_libs.sap_snote:
      conn_username: 'DDIC'
      conn_password: 'Passwd1234'
      host: 192.168.1.100
      sysnr: '01'
      client: '000'
      state: absent
      snote: 0002949148
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| A small execution description. Returned: always Sample:  | |
| A complete description of the SNOTE implementation. If this is available. Returned: always Sample:  | 
