juanenriqueescobar.bitbucket.deployment_pattern (0.0.7) — module

create a deployment in repository

| "added in version" 0.0.0 of juanenriqueescobar.bitbucket"

Authors: Juan Enrique Escobar Robles (@juanenriqueescobar)

Install collection

Install with ansible-galaxy collection install juanenriqueescobar.bitbucket:==0.0.7


Add to requirements.yml

  collections:
    - name: juanenriqueescobar.bitbucket
      version: 0.0.7

Description

create a deployment in repository

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: set the branch pattern for deployment
  juanenriqueescobar.bitbucket.deployment_pattern:
    username:    myuser
    password:    password-generated-by-bitbucket
    repository:  myworkspace/myrepo
    state:       present
    deployment:  region-us-east-1
    pattern:     deploy/us-east-1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove the branch pattern for deployment
  juanenriqueescobar.bitbucket.deployment_pattern:
    username:    myuser
    password:    password-generated-by-bitbucket
    repository:  myworkspace/myrepo
    state:       absent
    deployment:  region-us-east-1
    pattern:     deploy/us-east-1

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description: create or remove the deployment
    type: str

pattern:
    description: The pattern of the branchs that will use this deployment
    required: true
    type: str

password:
    description: The bitbucket password
    required: true
    type: str

username:
    description: The bitbucket username
    required: true
    type: str

deployment:
    description: The name of deployment
    required: true
    type: str

repository:
    description: The workspace/repo
    required: true
    type: str

Outputs

deployment:
  description: The original deployment param that was passed in.
  returned: always
  type: str
pattern:
  description: The original pattern param that was passed in.
  returned: always
  type: str
repository:
  description: The original repository param that was passed in.
  returned: always
  type: str
result:
  description: the result of the api call
  returned: always
  type: dict
result.body:
  description: body of the api call
  returned: only when result.state is created
  type: dict
result.state:
  description: one of 'created, not changed, deleted, not exists'
  returned: always
  type: str