:source: katello_activation_key.py :orphan: .. _katello_activation_key_module: katello_activation_key -- Create and Manage Katello activation keys +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. contents:: :local: :depth: 1 Synopsis -------- - Create and Manage Katello activation keys Requirements ------------ The below requirements are needed on the host that executes this module. - apypie Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
auto_attach
boolean
    Choices:
  • no
  • yes
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
    Choices:
  • enabled
  • disabled
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
    Choices:
  • Self-Support
  • Standard
  • Premium
Set the service level
state
string
    Choices:
  • present ←
  • present_with_defaults
  • absent
  • copied
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 untouched
present_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
    Choices:
  • no
  • yes ←
Whether or not to verify the TLS certificates of the Foreman server

aliases: verify_ssl

Examples -------- .. code-block:: yaml+jinja - 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 :ref:`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.