community.sap_libs.sap_company 模块 – 此模块将在 SAP S4HANA 环境中管理公司实体
注意
此模块是 community.sap_libs 集合(版本 1.4.2)的一部分。
如果您正在使用 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.sap_libs
。您需要进一步的要求才能使用此模块,有关详细信息,请参见要求。
要在 playbook 中使用它,请指定: community.sap_libs.sap_company
。
community.sap_libs 1.0.0 中的新增功能
概要
community.sap_libs.sap_user模块依赖于
pyrfc
Python 库(版本 2.4.0 及以上)。 根据您使用的发行版,您可能需要安装其他软件包才能使其可用。此模块将使用公司 BAPI
BAPI_COMPANY_CLONE
和BAPI_COMPANY_DELETE
来管理公司实体。
要求
在执行此模块的主机上需要以下要求。
pyrfc >= 2.4.0
参数
参数 |
注释 |
---|---|
公司所在的城市。 |
|
要连接的客户端编号。 您必须引用该值以确保保留前导零。 默认值: |
|
公司 ID。 |
|
SAP 系统所需的密码。 |
|
SAP 系统所需的用户名。 |
|
公司的国家代码。 例如, |
|
通用电子邮件地址。 |
|
SAP 系统所需的主机。 可以是 FQDN 或 IP 地址。 |
|
公司名称。 |
|
其他公司名称。 |
|
城市的邮政编码。 |
|
关于如何处理公司的决策。 选择
|
|
公司所在的街道。 |
|
街道号码。 |
|
SAP 系统的系统编号。 您必须引用该值以确保保留前导零。 默认值: |
|
时区。 |
说明
注意
不支持
check_mode
。
示例
- name: Create SAP Company
community.sap_libs.sap_company:
conn_username: 'DDIC'
conn_password: 'HECtna2021#'
host: 100.0.201.20
sysnr: '01'
client: '000'
state: present
company_id: "Comp_ID"
name: "Test_comp"
name_2: "LTD"
country: "DE"
time_zone: "UTC"
city: "City"
post_code: "12345"
street: "test_street"
street_no: "1"
e_mail: "[email protected]"
# pass in a message and have changed true
- name: Delete SAP Company
community.sap_libs.sap_company:
conn_username: 'DDIC'
conn_password: 'HECtna2021#'
host: 100.0.201.20
sysnr: '01'
client: '000'
state: absent
company_id: "Comp_ID"
name: "Test_comp"
name_2: "LTD"
country: "DE"
time_zone: "UTC"
city: "City"
post_code: "12345"
street: "test_street"
street_no: "1"
e_mail: "[email protected]"
返回值
通用返回值记录在这里,以下是此模块特有的字段
键 |
描述 |
---|---|
简短的执行说明。 返回值: 始终 示例: |
|
已执行任务的完整说明。如果可用。 返回值: 始终 示例: |