community.general.github_hooks – Manages GitHub service hooks.¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.github_hooks
.
DEPRECATED¶
- Removed in
version 2.0.0
- Why
Replaced by more granular modules
- Alternative
Use community.general.github_webhook and community.general.github_webhook_info instead.
Parameters¶
Examples¶
- name: Create a new service hook ignoring duplicates
community.general.github_hooks:
action: create
hookurl: http://11.111.111.111:2222
user: '{{ gituser }}'
oauthkey: '{{ oauthkey }}'
repo: https://api.github.com/repos/pcgentry/Github-Auto-Deploy
# Cleaning all hooks for this repo that had an error on the last update.
# Since this works for all hooks in a repo it is probably best that this would be called from a handler.
- name: Clean all hooks
community.general.github_hooks:
action: cleanall
user: '{{ gituser }}'
oauthkey: '{{ oauthkey }}'
repo: '{{ repo }}'
delegate_to: localhost
Status¶
This module will be removed in version 2.0.0. [deprecated]
For more information see DEPRECATED.
Authors¶
Phillip Gentry, CX Inc (@pcgentry)