theforeman.foreman.subscription_manifest (4.0.0) — module

Manage Subscription Manifests

| "added in version" 1.0.0 of theforeman.foreman"

Authors: Andrew Kofink (@akofink)

Install collection

Install with ansible-galaxy collection install theforeman.foreman:==4.0.0


Add to requirements.yml

  collections:
    - name: theforeman.foreman
      version: 4.0.0

Description

Upload, refresh and delete Subscription Manifests


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Upload the RHEL developer edition manifest"
  theforeman.foreman.subscription_manifest:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    organization: "Default Organization"
    state: present
    manifest_path: "/tmp/manifest.zip"

Inputs

    
state:
    choices:
    - absent
    - present
    - refreshed
    default: present
    description:
    - The state of the manifest
    type: str

password:
    description:
    - Password of the user accessing the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_PASSWORD)
      will be used instead.
    required: true
    type: str

username:
    description:
    - Username accessing the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_USERNAME)
      will be used instead.
    required: true
    type: str

server_url:
    description:
    - URL of the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_SERVER_URL)
      will be used instead.
    required: true
    type: str

organization:
    description:
    - Organization that the entity is in
    required: true
    type: str

manifest_path:
    description:
    - Path to the manifest zip file
    - This parameter will be ignored if I(state=absent) or I(state=refreshed)
    type: path

repository_url:
    aliases:
    - redhat_repository_url
    description:
    - URL to retrieve content from
    type: str

validate_certs:
    default: true
    description:
    - Whether or not to verify the TLS certificates of the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_VALIDATE_CERTS)
      will be used instead.
    type: bool