infra.eda_configuration.user_token (1.1.0) — module

Manage the user tokens of the current user in EDA Controller

Authors: Derek Waters (@derekwaters)

preview | supported by community

Install collection

Install with ansible-galaxy collection install infra.eda_configuration:==1.1.0


Add to requirements.yml

  collections:
    - name: infra.eda_configuration
      version: 1.1.0

Description

Create, update and delete user tokens in EDA Controller

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create eda user token
  infra.eda_configuration.user_token:
    name: my_user_token
    description: my user token for accessing AAP
    token: SOMETOKENDATA
    eda_host: eda.example.com
    eda_username: admin
    eda_password: Sup3r53cr3t

Inputs

    
name:
    description:
    - The name of the token.
    required: true
    type: str

token:
    description:
    - The token data to set for the user.
    required: true
    type: str

eda_host:
    aliases:
    - eda_hostname
    description:
    - URL to Ansible Galaxy or EDA Controller instance.
    - If value not set, will try environment variable C(EDA_HOST)
    - If value not specified by any means, the value of C(127.0.0.1) will be used
    type: str

new_name:
    description:
    - Setting this option will change the existing name (looked up via the name field).
    type: str

eda_token:
    description:
    - The Ansible Galaxy or EDA Controller API token to use.
    - This value can be in one of two formats.
    - A string which is the token itself. (i.e. bqV5txm97wqJqtkxlMkhQz0pKhRMMX)
    - A dictionary structure as returned by the eda_token module.
    - If value not set, will try environment variable C(EDA_API_TOKEN)
    type: raw

description:
    description:
    - The description of the token.
    required: false
    type: str

eda_password:
    description:
    - Password for your Ansible Galaxy or EDA Controller instance.
    - If value not set, will try environment variable C(EDA_PASSWORD)
    type: str

eda_username:
    description:
    - Username for your Ansible Galaxy or EDA Controller instance.
    - If value not set, will try environment variable C(EDA_USERNAME)
    type: str

validate_certs:
    aliases:
    - eda_verify_ssl
    description:
    - Whether to allow insecure connections to Galaxy or EDA Controller Server.
    - If C(no), SSL certificates will not be validated.
    - This should only be used on personally controlled sites using self-signed certificates.
    - If value not set, will try environment variable C(EDA_VERIFY_SSL)
    type: bool

request_timeout:
    description:
    - Specify the timeout Ansible should use in requests to the Galaxy or EDA Controller
      host.
    - Defaults to 10s, but this is handled by the shared module_utils code
    type: float