community / community.general / 0.1.4 / module / bitbucket_pipeline_key_pair Manages Bitbucket pipeline SSH key pair Authors: Evgeniy Krysanov (@catcombo)community.general.bitbucket_pipeline_key_pair (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
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