credential_type | str | yes | - | The credential type being created. Can be a built-in credential type such as "Machine", or a custom credential type such as "My Credential Type" Choices include Amazon Web Services, Ansible Galaxy/Automation Hub API Token, Centrify Vault Credential Provider Lookup, Container Registry, CyberArk Central Credential Provider Lookup, CyberArk Conjur Secret Lookup, Google Compute Engine, GitHub Personal Access Token, GitLab Personal Access Token, GPG Public Key, HashiCorp Vault Secret Lookup, HashiCorp Vault Signed SSH, Insights, Machine, Microsoft Azure Key Vault, Microsoft Azure Resource Manager, Network, OpenShift or Kubernetes API Bearer Token, OpenStack, Red Hat Ansible Automation Platform, Red Hat Satellite 6, Red Hat Virtualization, Source Control, Thycotic DevOps Secrets Vault, Thycotic Secret Server, Vault, VMware vCenter, or a custom credential type |
name | str | yes | - | The name to use for the credential. |
aap_token | raw | no | - | The OAuth 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 token module. If value not set, will try environment variable C(CONTROLLER_OAUTH_TOKEN) and then config files |
controller_config_file | path | no | - | Path to the controller config file. If provided, the other locations for config files will not be considered. |
controller_host | str | no | - | URL to your Automation Platform Controller instance. If value not set, will try environment variable C(CONTROLLER_HOST) and then config files If value not specified by any means, the value of C(127.0.0.1) will be used |
controller_password | str | no | - | Password for your controller instance. If value not set, will try environment variable C(CONTROLLER_PASSWORD) and then config files |
controller_username | str | no | - | Username for your controller instance. If value not set, will try environment variable C(CONTROLLER_USERNAME) and then config files |
copy_from | str | no | - | Name or id to copy the credential from. This will copy an existing credential and change any parameters supplied. The new credential name will be the one provided in the name parameter. The organization parameter is not used in this, to facilitate copy from one organization to another. Provide the id or use the lookup plugin to provide the id if multiple credentials share the same name. |
description | str | no | - | The description to use for the credential. |
inputs | dict | no | - | Credential inputs where the keys are var names used in templating. Refer to the Automation Platform Controller documentation for example syntax. authorize (use this for net type) authorize_password (password for net credentials that require authorize) client (client or application ID for azure_rm type) security_token (STS token for aws type) secret (secret token for azure_rm type) tenant (tenant ID for azure_rm type) subscription (subscription ID for azure_rm type) domain (domain for openstack type) become_method (become method to use for privilege escalation; some examples are "None", "sudo", "su", "pbrun") become_username (become username; use "ASK" and launch job to be prompted) become_password (become password; use "ASK" and launch job to be prompted) vault_password (the vault password; use "ASK" and launch job to be prompted) project (project that should use this credential for GCP) host (the host for this credential) username (the username for this credential; access_key for AWS) password (the password for this credential; secret_key for AWS, api_key for RAX) ssh_key_data (SSH private key content; to extract the content from a file path, use the lookup function (see examples)) vault_id (the vault identifier; this parameter is only valid if C(kind) is specified as C(vault).) ssh_key_unlock (unlock password for ssh_key; use "ASK" and launch job to be prompted) gpg_public_key (GPG Public Key used for signature validation) client_id (client ID insights type service account) client_secret (client secret insights type service account) |
new_name | str | no | - | Setting this option will change the existing name (looked up via the name field. |
organization | str | no | - | Organization name, ID, or named URL that should own the credential. This parameter is mutually exclusive with C(team) and C(user). |
request_timeout | float | no | - | Specify the timeout Ansible should use in requests to the controller host. Defaults to 10s, but this is handled by the shared module_utils code |
state | str | no | present | Desired state of the resource. C(exists) will not modify the resource if it is present. |
team | str | no | - | Team name, ID, or named URL that should own this credential. This parameter is mutually exclusive with C(organization) and C(user). |
update_secrets | bool | no | True | C(true) will always update encrypted values. C(false) will only update encrypted values if a change is absolutely known to be needed. |
user | str | no | - | User name, ID, or named URL that should own this credential. This parameter is mutually exclusive with C(organization) and C(team). |
validate_certs | bool | no | - | Whether to allow insecure connections to AWX. 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(CONTROLLER_VERIFY_SSL) and then config files |