ansible.builtin.bitbucket_pipeline_key_pair (v2.9.27) — module

Manages Bitbucket pipeline SSH key pair

| "added in version" 2.8 of ansible.builtin"

Authors: Evgeniy Krysanov (@catcombo)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Manages Bitbucket pipeline SSH key pair.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove SSH key pair
  bitbucket_pipeline_key_pair:
    repository: bitbucket-repo
    username: bitbucket_username
    state: absent

Inputs

    
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