Note
This module is part of the community.sap_libs collection (version 1.4.2).
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.
To use it in a playbook, specify: community.sap_libs.sap_control_exec.
New in community.sap_libs 1.1.0
Aliases: sapcontrol
Parameter | Comments |
|---|---|
force boolean | Forces the execution of the function Choices:
|
function string / required | The function to execute. Choices:
|
hostname string | The hostname to connect to the sapstartsrv. Could be an IP address, FQDN or hostname. Default: |
parameter string | The parameter to pass to the function. |
password string | The password to connect to the sapstartsrv. |
port integer | The port number of the sapstartsrv. |
sysnr string | The system number of the instance. |
username string | The username to connect to the sapstartsrv. |
Note
check_mode.- name: GetProcessList with sysnr
community.sap_libs.sap_control_exec:
hostname: 192.168.8.15
sysnr: "01"
function: GetProcessList
- name: GetProcessList with custom port
community.sap_libs.sap_control_exec:
hostname: 192.168.8.15
function: GetProcessList
port: 50113
- name: ParameterValue
community.sap_libs.sap_control_exec:
hostname: 192.168.8.15
sysnr: "01"
username: hdbadm
password: test1234#
function: ParameterValue
parameter: ztta
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
msg string | Success-message with functionname. Returned: always Sample: |
out list / elements=dictionary | The full output of the required function. Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_control_exec_module.html