bitbucket_access_key – Manages Bitbucket repository access keys¶
New in version 2.8.
Synopsis¶
Manages Bitbucket repository access keys (also called deploy keys).
Parameters¶
Notes¶
Note
Bitbucket OAuth consumer key and secret can be obtained from Bitbucket profile -> Settings -> Access Management -> OAuth.
Bitbucket OAuth consumer should have permissions to read and administrate account repositories.
Check mode is supported.
Examples¶
- name: Create access key
bitbucket_access_key:
repository: 'bitbucket-repo'
username: bitbucket_username
key: '{{lookup("file", "bitbucket.pub") }}'
label: 'Bitbucket'
state: present
- name: Delete access key
bitbucket_access_key:
repository: bitbucket-repo
username: bitbucket_username
label: Bitbucket
state: absent
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]