theforeman.foreman.product – Manage Products¶
Note
This plugin is part of the theforeman.foreman collection.
To install it use: ansible-galaxy collection install theforeman.foreman
.
To use it in a playbook, specify: theforeman.foreman.product
.
New in version 1.0.0: of theforeman.foreman
Parameters¶
Examples¶
- name: "Create Fedora product with a sync plan"
theforeman.foreman.product:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "Fedora"
organization: "My Cool new Organization"
sync_plan: "Fedora repos sync"
state: present
- name: "Create CentOS 7 product with content credentials"
theforeman.foreman.product:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "CentOS 7"
gpg_key: "RPM-GPG-KEY-CentOS7"
organization: "My Cool new Organization"
state: present
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description | |
---|---|---|---|
entity
dictionary
|
success |
Final state of the affected entities grouped by their type.
|
|
products
list
/ elements=dictionary
|
success |
List of products.
|
Authors¶
Eric D Helms (@ehelms)
Matthias Dellweg (@mdellweg) ATIX AG