theforeman.foreman.redhat_manifest 模块 – 与 Red Hat Satellite 订阅清单交互
注意
此模块是 theforeman.foreman 集合(版本 4.2.0)的一部分。
如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install theforeman.foreman。
要在 playbook 中使用它,请指定:theforeman.foreman.redhat_manifest。
theforeman.foreman 1.0.0 中的新功能
概要
- 下载并修改 Red Hat Satellite 订阅清单 
参数
| 参数 | 注释 | 
|---|---|
| 订阅清单的内容访问模式。 设置 content_access_mode=org_enviroment 启用简单内容访问。 选项 
 | |
| 清单名称 | |
| Red Hat Portal 密码 | |
| 导出清单的路径 | |
| 订阅池 ID | |
| 订阅状态 选项 
 | |
| Red Hat Portal 订阅访问地址 默认值:  | |
| pool_id 订阅的数量 默认值:  | |
| 清单状态 选项 
 | |
| Red Hat Portal 用户名 | |
| 清单 UUID | |
| 验证 Portal SSL 选项 
 | 
示例
- name: Create foreman.example.com Manifest and add 7 sub
  theforeman.foreman.redhat_manifest:
    name: "foreman.example.com"
    username: "john-smith"
    password: "changeme"
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 7
- name: Ensure my manifest has 10 of one subs in it and export
  theforeman.foreman.redhat_manifest:
    uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 10
    path: /root/manifest.zip
- name: Remove all of one subs from foreman.example.com
  theforeman.foreman.redhat_manifest:
    name: foreman.example.com
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    pool_state: absent
返回值
常见的返回值在此处记录 此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 清单 UUID 返回: 成功 示例:  | 
