W3cubDocs

/Ansible

github_release - Interact with GitHub Releases

New in version 2.2.

Synopsis

Fetch metadata about Github Releases

Requirements (on host that executes module)

  • github3.py >= 1.0.0a3

Options

parameter required default choices comments
action
yes
  • latest_release
Action to perform
repo
yes
Repository name
token
yes
Github Personal Access Token for authenticating
user
yes
The GitHub account that owns the repository

Examples

- name: Get latest release of test/test
  github:
    token: tokenabc1234567890
    user: testuser
    repo: testrepo
    action: latest_release

Return Values

Common return values are documented here Common Return Values, the following are the fields unique to this module:

name description returned type sample
latest_release Version of the latest release success string 1.1.0

This is an Extras Module

For more information on what this means please read Extras Modules

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/github_release_module.html