- requests
- six
---
- hosts: localhost
connection: local
gather_facts: yes
vars:
tasks:
- bitbucket_repo:
password: "NunYaBeez!"
project_key: "DEVOPS"
repo: "my-new-repo"
url: "https://bitbucket.mycorpdomain.net"
username: "UserNameWithProjectSuperPowers"
state: present
register: bbout
- debug:
var: bbout
---
- hosts: localhost
connection: local
gather_facts: yes
vars:
tasks:
- bitbucket_repo:
password: "NunYaBeez!"
project_key: "DEVOPS"
repo: "my-new-repo"
url: "https://bitbucket.mycorpdomain.net"
username: "UserNameWithProjectSuperPowers"
state: absent
register: bbout
- debug:
var: bbout
state can either be omitted or stated as query
---
- hosts: localhost
connection: local
gather_facts: yes
vars:
tasks:
- bitbucket_repo:
password: "NunYaBeez!"
project_key: "DEVOPS"
repo: "my-new-repo"
url: "https://bitbucket.mycorpdomain.net"
username: "UserNameWithProjectSuperPowers"
register: bbout
- debug:
var: bbout