katello_activation_key – Create and Manage Katello activation keys¶
Parameters¶
Parameter | Choices/Defaults | Comments | |
---|---|---|---|
auto_attach
boolean
|
|
Set Auto-Attach on or off
|
|
content_overrides
list
|
List of content overrides that include label and override state ('enabled', 'disabled' or 'default')
|
||
label
string
/ required
|
Label of the content override
|
||
override
string
/ required
|
|
Override value
|
|
content_view
string
|
Name of the content view
|
||
host_collections
list
|
List of host collections to add to activation key
|
||
lifecycle_environment
string
|
Name of the lifecycle environment
|
||
name
string
/ required
|
Name of the activation key
|
||
new_name
string
|
Name of the new activation key when state == copied
|
||
organization
string
/ required
|
Organization name that the activation key is in
|
||
password
string
/ required
|
Password of the user accessing the Foreman server
|
||
release_version
string
|
Set the content release version
|
||
server_url
string
/ required
|
URL of the Foreman server
|
||
service_level
string
|
|
Set the service level
|
|
state
string
|
|
State of the Activation Key
If
copied the key will be copied to a new one with new_name as the name and all other fields left untouchedpresent_with_defaults will ensure the entity exists, but won't update existing ones |
|
subscriptions
list
|
List of subscriptions that include name
|
||
name
string
/ required
|
Name of the Subscription to be added
|
||
username
string
/ required
|
Username accessing the Foreman server
|
||
validate_certs
boolean
|
|
Whether or not to verify the TLS certificates of the Foreman server
aliases: verify_ssl |
Examples¶
- name: "Create katello client activation key"
katello_activation_key:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "Katello Clients"
organization: "Default Organization"
lifecycle_environment: "Library"
content_view: 'client content view'
host_collections:
- rhel7-servers
- rhel7-production
subscriptions:
- name: "Red Hat Enterprise Linux"
content_overrides:
- label: rhel-7-server-optional-rpms
override: enabled
auto_attach: False
release_version: 7Server
service_level: Standard
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Andrew Kofink (@akofink)
Hint
If you notice any issues in this documentation you can edit this document to improve it.