theforeman / theforeman.foreman / 0.8.1 / module / katello_activation_key Create and Manage Katello activation keys Authors: Andrew Kofink (@akofink) preview | supported by communitytheforeman.foreman.katello_activation_key (0.8.1) — module
Install with ansible-galaxy collection install theforeman.foreman:==0.8.1
collections: - name: theforeman.foreman version: 0.8.1
Create and Manage Katello activation keys
- 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: - pool_id: "8a88e9826db22df5016dd018abdd029b" - pool_id: "8a88e9826db22df5016dd01a23270344" - name: "Red Hat Enterprise Linux" content_overrides: - label: rhel-7-server-optional-rpms override: enabled auto_attach: False release_version: 7Server service_level: Standard
name: description: - Name of the activation key required: true type: str state: choices: - present - present_with_defaults - absent - copied default: present description: - State of the Activation Key - If C(copied) the key will be copied to a new one with I(new_name) as the name and all other fields left untouched - C(present_with_defaults) will ensure the entity exists, but won't update existing ones type: str new_name: description: - Name of the new activation key when state == copied type: str password: description: Password of the user accessing the Foreman server required: true type: str username: description: Username accessing the Foreman server required: true type: str max_hosts: description: - Maximum number of registered content hosts. - Required if I(unlimited_hosts=false) type: int server_url: description: URL of the Foreman server required: true type: str auto_attach: description: - Set Auto-Attach on or off type: bool content_view: description: - Name of the content view type: str organization: description: - Organization that the entity is in required: true type: str purpose_role: description: - Sets the system purpose role type: str purpose_usage: description: - Sets the system purpose usage type: str service_level: choices: - Self-Support - Standard - Premium description: - Set the service level type: str subscriptions: description: - List of subscriptions that include either Name or Pool ID. - Pool IDs are preferred since Names are not unique and the module will fail if it finds more than one subscription with the same name. elements: dict suboptions: name: description: - Name of the Subscription to be added. - Mutually exclusive with I(pool_id). required: false type: str pool_id: description: - Pool ID of the Subscription to be added. - Mutually exclusive with I(name). required: false type: str type: list purpose_addons: description: - Sets the system purpose add-ons elements: str type: list validate_certs: aliases: - verify_ssl default: true description: Whether or not to verify the TLS certificates of the Foreman server type: bool release_version: description: - Set the content release version type: str unlimited_hosts: description: - Can the activation key have unlimited hosts type: bool host_collections: description: - List of host collections to add to activation key elements: str type: list content_overrides: description: - List of content overrides that include label and override state ('enabled', 'disabled' or 'default') elements: dict suboptions: label: description: - Label of the content override required: true type: str override: choices: - enabled - disabled - default description: - Override value required: true type: str type: list lifecycle_environment: description: - Name of the lifecycle environment type: str