Skip to content

Ansible module to create/delete/query bitbucket server repos

License

Notifications You must be signed in to change notification settings

SimplySeth/bitbucket_repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible module for Creating/Deleting/Querying Bitbucket Repos

Requirements:

  • requests
  • six

Example Usage:

Creation:

---
- 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

Deletion:

---
- 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

Query:

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

About

Ansible module to create/delete/query bitbucket server repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages