infra.eda_configuration.project (1.1.0) — module

Manage a project in EDA Controller

Authors: Chris Renwick (@crenwick93)

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 projects in EDA Controller

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create eda project
  infra.eda_configuration.project:
    name: my_project
    description: my awesome project
    url: https://github.com/ansible/ansible-rulebook.git
    credential: test_token
    state: present
    eda_host: eda.example.com
    eda_username: admin
    eda_password: Sup3r53cr3t

Inputs

    
url:
    aliases:
    - scm_url
    description:
    - A URL to a remote archive, such as a Github Release or a build artifact stored in
      Artifactory and unpacks it into the project path for use.
    required: true
    type: str

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

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Desired state of the resource.
    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

credential:
    description:
    - The token needed to utilize the SCM URL.
    required: false
    type: str

description:
    description:
    - The description of the project.
    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