github_webhook_info – Query information about GitHub webhooks¶
New in version 2.8.
Synopsis¶
- Query information about GitHub webhooks
- This module was called
github_webhook_facts
before Ansible 2.9. The usage did not change.
Aliases: github_webhook_facts
Requirements¶
The below requirements are needed on the host that executes this module.
- PyGithub >= 1.3.5
Parameters¶
Examples¶
- name: list hooks for a repository (password auth)
github_webhook_info:
repository: ansible/ansible
user: "{{ github_user }}"
password: "{{ github_password }}"
register: ansible_webhooks
- name: list hooks for a repository on GitHub Enterprise (token auth)
github_webhook_info:
repository: myorg/myrepo
user: "{{ github_user }}"
token: "{{ github_user_api_token }}"
github_url: https://github.example.com/api/v3/
register: myrepo_webhooks
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Chris St. Pierre (@stpierre)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.