community / community.general / 6.6.8 / module / bitbucket_access_key Manages Bitbucket repository access keys Authors: Evgeniy Krysanov (@catcombo)community.general.bitbucket_access_key (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
Manages Bitbucket repository access keys (also called deploy keys).
- name: Create access key community.general.bitbucket_access_key: repository: 'bitbucket-repo' workspace: bitbucket_workspace key: '{{lookup("file", "bitbucket.pub") }}' label: 'Bitbucket' state: present
- name: Delete access key community.general.bitbucket_access_key: repository: bitbucket-repo workspace: bitbucket_workspace label: Bitbucket state: absent
key: description: - The SSH public key. type: str user: aliases: - username description: - The username. - If not set the environment variable C(BITBUCKET_USERNAME) will be used. - I(username) is an alias of I(user) since community.genreal 6.0.0. It was an alias of I(workspace) before. type: str version_added: 4.0.0 version_added_collection: community.general label: description: - The key label. required: true type: str state: choices: - absent - present description: - Indicates desired state of the access key. required: true type: str password: description: - The App password. - If not set the environment variable C(BITBUCKET_PASSWORD) will be used. type: str version_added: 4.0.0 version_added_collection: community.general client_id: description: - The OAuth consumer key. - If not set the environment variable C(BITBUCKET_CLIENT_ID) will be used. type: str workspace: description: - The repository owner. - I(username) used to be an alias of this option. Since community.general 6.0.0 it is an alias of I(user). required: true type: str repository: description: - The repository name. required: true type: str client_secret: description: - The OAuth consumer secret. - If not set the environment variable C(BITBUCKET_CLIENT_SECRET) will be used. type: str