Note
This module is part of the community.general collection (version 10.7.3).
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. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: community.general.bitbucket_pipeline_known_host.
key field to specify it manually.The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
client_id string | The OAuth consumer key. If not set the environment variable |
client_secret string | The OAuth consumer secret. If not set the environment variable |
key string | The public key. |
name string / required | The FQDN of the known host. |
password string added in community.general 4.0.0 | The App password. If not set the environment variable |
repository string / required | The repository name. |
state string / required | Indicates desired state of the record. Choices:
|
user aliases: username string added in community.general 4.0.0 | |
workspace string / required | The repository owner. Note: |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
Note
- name: Create known hosts from the list
community.general.bitbucket_pipeline_known_host:
repository: 'bitbucket-repo'
workspace: bitbucket_workspace
name: '{{ item }}'
state: present
with_items:
- bitbucket.org
- example.com
- name: Remove known host
community.general.bitbucket_pipeline_known_host:
repository: bitbucket-repo
workspace: bitbucket_workspace
name: bitbucket.org
state: absent
- name: Specify public key file
community.general.bitbucket_pipeline_known_host:
repository: bitbucket-repo
workspace: bitbucket_workspace
name: bitbucket.org
key: '{{lookup("file", "bitbucket.pub") }}'
state: absent
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/bitbucket_pipeline_known_host_module.html