Note
This plugin is part of the community.general collection (version 3.8.1).
You might already have this collection installed if you are using the ansible
package. It is not included in ansible-core
. To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.bitbucket_access_key
.
Parameter | Choices/Defaults | Comments |
---|---|---|
client_id string | The OAuth consumer key. If not set the environment variable BITBUCKET_CLIENT_ID will be used. | |
client_secret string | The OAuth consumer secret. If not set the environment variable BITBUCKET_CLIENT_SECRET will be used. | |
key string | The SSH public key. | |
label string / required | The key label. | |
repository string / required | The repository name. | |
state string / required |
| Indicates desired state of the access key. |
username string / required | The repository owner. |
Note
- name: Create access key community.general.bitbucket_access_key: repository: 'bitbucket-repo' username: bitbucket_username key: '{{lookup("file", "bitbucket.pub") }}' label: 'Bitbucket' state: present - name: Delete access key community.general.bitbucket_access_key: repository: bitbucket-repo username: bitbucket_username label: Bitbucket state: absent
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/bitbucket_access_key_module.html