theforeman.foreman.scc_account 模块 – 管理 SUSE 客户中心账户
注意
此模块是 theforeman.foreman 集合(版本 4.2.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install theforeman.foreman
。您需要进一步的要求才能使用此模块,请参阅 要求 了解详细信息。
要在 playbook 中使用它,请指定:theforeman.foreman.scc_account
。
theforeman.foreman 1.0.0 中的新增功能
概要
管理 SUSE 客户中心账户
此模块需要在服务器中设置 foreman_scc_manager 插件
别名:foreman_scc_account
要求
执行此模块的主机上需要满足以下要求。
requests
参数
参数 |
注释 |
---|---|
SUSE 客户中心帐户的 URL |
|
同步 SUSE 客户中心帐户的间隔 选项
|
|
SUSE 客户中心帐户的登录 ID |
|
SUSE 客户中心帐户的名称 |
|
相关组织的名称 |
|
访问 Foreman 服务器的用户的密码。 如果未在任务中指定该值,则将使用环境变量 |
|
SUSE 客户中心帐户的密码 |
|
Foreman 服务器的 URL。 如果未在任务中指定该值,则将使用环境变量 |
|
SUSE 客户中心帐户的状态 选项
|
|
SUSE 客户中心帐户的上次同步时间 |
|
测试连接到服务器的 SUSE 客户中心帐户凭据 选项
|
|
要更新的 SUSE 客户中心帐户的名称 |
|
访问 Foreman 服务器的用户名。 如果未在任务中指定该值,则将使用环境变量 |
|
是否验证 Foreman 服务器的 TLS 证书。 如果未在任务中指定该值,则将使用环境变量 选项
|
属性
属性 |
支持 |
描述 |
---|---|---|
支持: 完全 |
可以在 check_mode 中运行并返回已更改的状态预测,而无需修改实体 |
|
支持: 完全 |
当处于 diff 模式时,将返回有关已更改(或可能需要在 check_mode 中更改)的详细信息 |
示例
- name: "Create a suse customer center account"
theforeman.foreman.scc_account:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "Test"
login: "abcde"
scc_account_password: "12345"
base_url: "https://scc.suse.com"
state: present
- name: "Update a suse customer center account"
theforeman.foreman.scc_account:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "Test1"
state: present
- name: "Delete a suse customer center account"
theforeman.foreman.scc_account:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "Test"
state: absent
返回值
常见的返回值已在此处记录 此处,以下是此模块独有的字段
键 |
描述 |
---|---|
受影响实体的最终状态按其类型分组。 已返回: 成功 |
|
scc 帐户列表。 已返回: 成功 |