theforeman.foreman.scc_product 模块 – 订阅 SUSE 客户中心账户产品

注意

此模块是 theforeman.foreman 集合(版本 4.2.0)的一部分。

如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install theforeman.foreman。您需要更多要求才能使用此模块,请参阅 要求了解详细信息。

要在 playbook 中使用它,请指定:theforeman.foreman.scc_product

theforeman.foreman 1.0.0 中的新增功能

概要

别名:foreman_scc_product

要求

执行此模块的主机需要满足以下要求。

  • requests

参数

参数

注释

组织

字符串 / 必需

实体所在的组织

密码

字符串 / 必需

访问 Foreman 服务器的用户的密码。

如果未在任务中指定该值,则将使用环境变量 FOREMAN_PASSWORD 的值。

scc_account

字符串 / 必需

与产品关联的 suse 客户中心账户的名称

scc_product

别名:friendly_name

字符串 / 必需

suse 客户中心账户产品的全名。

friendly_name 别名已弃用,因为它指的是一个不能唯一标识产品且自 SCC Manager 1.8.6 以来不用于产品查找的属性。

server_url

字符串 / 必需

Foreman 服务器的 URL。

如果未在任务中指定该值,则将使用环境变量 FOREMAN_SERVER_URL 的值。

用户名

字符串 / 必需

访问 Foreman 服务器的用户名。

如果未在任务中指定该值,则将使用环境变量 FOREMAN_USERNAME 的值。

validate_certs

布尔值

是否验证 Foreman 服务器的 TLS 证书。

如果未在任务中指定该值,则将使用环境变量 FOREMAN_VALIDATE_CERTS 的值。

选择

  • false

  • true ←(默认)

属性

属性

支持

描述

check_mode

支持:完整

可以在 check_mode 中运行并返回更改的状态预测,而无需修改实体

diff_mode

支持:完整

在 diff 模式下,将返回有关已更改的内容(或可能需要在 check_mode 中更改的内容)的详细信息

示例

- name: "Subscribe to suse customer center product"
  theforeman.foreman.scc_product:
    scc_product: "Product1"
    scc_account: "Test"
    organization: "Test Organization"

作者

  • Manisha Singhal (@manisha15) ATIX AG