.. Document meta :orphan: .. Anchors .. _ansible_collections.theforeman.foreman.content_credential_module: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title theforeman.foreman.content_credential -- Manage Content Credentials +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This plugin is part of the `theforeman.foreman collection `_. To install it use: :code:`ansible-galaxy collection install theforeman.foreman`. To use it in a playbook, specify: :code:`theforeman.foreman.content_credential`. .. version_added .. versionadded:: 1.0.0 of theforeman.foreman .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Create and manage content credentials .. Aliases .. Requirements Requirements ------------ The below requirements are needed on the host that executes this module. - apypie .. Options Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
content
string / required
Content of the content credential
content_type
string / required
    Choices:
  • gpg_key
  • cert
Type of credential
name
string / required
Name of the content credential
organization
string / required
Organization that the entity is in
password
string / required
Password of the user accessing the Foreman server
server_url
string / required
URL of the Foreman server
state
string
    Choices:
  • present ←
  • absent
State of the entity
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

.. Notes .. Seealso .. Examples Examples -------- .. code-block:: yaml+jinja - name: "Create katello client GPG key" theforeman.foreman.content_credential: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "RPM-GPG-KEY-my-repo" content_type: gpg_key organization: "Default Organization" content: "{{ lookup('file', 'RPM-GPG-KEY-my-repo') }}" .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. raw:: html
Key Returned Description
entity
dictionary
success
Final state of the affected entities grouped by their type.

 
content_credentials
list / elements=dictionary
success
List of content credentials.



.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Baptiste Agasse (@bagasse) .. Parsing errors