bitbucket_pipeline_known_host – Manages Bitbucket pipeline known hosts¶
New in version 2.8.
Synopsis¶
- Manages Bitbucket pipeline known hosts under the “SSH Keys” menu.
- The host fingerprint will be retrieved automatically, but in case of an error, one can use key field to specify it manually.
Parameters¶
Notes¶
Note
- Bitbucket OAuth consumer key and secret can be obtained from Bitbucket profile -> Settings -> Access Management -> OAuth.
- Check mode is supported.
Examples¶
- name: Create known hosts from the list
bitbucket_pipeline_known_host:
repository: 'bitbucket-repo'
username: bitbucket_username
name: '{{ item }}'
state: present
with_items:
- bitbucket.org
- example.com
- name: Remove known host
bitbucket_pipeline_known_host:
repository: bitbucket-repo
username: bitbucket_username
name: bitbucket.org
state: absent
- name: Specify public key file
bitbucket_pipeline_known_host:
repository: bitbucket-repo
username: bitbucket_username
name: bitbucket.org
key: '{{lookup("file", "bitbucket.pub") }}'
state: absent
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Evgeniy Krysanov (@catcombo)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.