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.
To use it in a playbook, specify: community.general.bitbucket_pipeline_variable.
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 |
name string / required | The pipeline variable name. |
password string added in community.general 4.0.0 | The App password. If not set the environment variable |
repository string / required | The repository name. |
secured boolean | Whether to encrypt the variable value. Choices:
|
state string / required | Indicates desired state of the variable. Choices:
|
user aliases: username string added in community.general 4.0.0 | |
value string | The pipeline variable value. |
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
changed is always true.- name: Create or update pipeline variables from the list
community.general.bitbucket_pipeline_variable:
repository: 'bitbucket-repo'
workspace: bitbucket_workspace
name: '{{ item.name }}'
value: '{{ item.value }}'
secured: '{{ item.secured }}'
state: present
with_items:
- {name: AWS_ACCESS_KEY, value: ABCD1234, secured: false}
- {name: AWS_SECRET, value: qwe789poi123vbn0, secured: true}
- name: Remove pipeline variable
community.general.bitbucket_pipeline_variable:
repository: bitbucket-repo
workspace: bitbucket_workspace
name: AWS_ACCESS_KEY
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_variable_module.html