ansible / ansible.builtin / v2.8.18 / module / bitbucket_pipeline_key_pair Manages Bitbucket pipeline SSH key pair | "added in version" 2.8 of ansible.builtin" Authors: Evgeniy Krysanov (@catcombo) preview | supported by communityansible.builtin.bitbucket_pipeline_key_pair (v2.8.18) — module
pip
Install with pip install ansible==2.8.18
Manages Bitbucket pipeline SSH key pair.
- name: Create or update SSH key pair bitbucket_pipeline_key_pair: repository: 'bitbucket-repo' username: bitbucket_username public_key: '{{lookup("file", "bitbucket.pub") }}' private_key: '{{lookup("file", "bitbucket") }}' state: present
- name: Remove SSH key pair bitbucket_pipeline_key_pair: repository: bitbucket-repo username: bitbucket_username state: absent
state: choices: - absent - present description: - Indicates desired state of the key pair. required: true type: str username: description: - The repository owner. required: true type: str client_id: description: - OAuth consumer key. - If not set the environment variable C(BITBUCKET_CLIENT_ID) will be used. type: str public_key: description: - The public key. type: str repository: description: - The repository name. required: true type: str private_key: description: - The private key. type: str client_secret: description: - OAuth consumer secret. - If not set the environment variable C(BITBUCKET_CLIENT_SECRET) will be used. type: str