webhook
ansible-role-webhook
Ansible role to install adnanh webhooks server
Fork from https://github.com/andsild/ansible-webhook-role.
This webhook has configurable variables that are missing from the original fork
Role Variables
webhook_version
: Sets the version of webhook to install2.7.0
webhook_checksum
: Sets the checksum for the version to install defaultsmd5:8bb63914f4ead672ff43191e91b0249f
webhook_user
: Set the user that webhook will use dafaultswebhook
webhook_group
: Set the group that webhook will use defaultswebhook
webhook_extra_groups
: sets any additional groups webhook requireswebhook_port
: sets the port that webhook will listen defaults9000
optional_args
: Optional arguments, see: Webhook-Parametersgithubhooks:[]
: Required for Github hooksgitlabhooks:[]
: Required for Gitlab hookshttphooks:[]
: Required for http hooks
Below are different hook configuration, you can have multiple of these for each hook required
githubhooks:
- id: "redeploy-webhook-github"
cmd: "./reload.sh"
cwd: "/var/"
branch: master
token: supersecretpassword
args:
- source: "url"
name: "name"
gitlabhooks:
- id: "redeploy-webhook-gitlab"
cmd: "./reload.sh"
cwd: "/var/"
branch: ''
token: supersecretpassword
args:
- source: "url"
name: "name"
httphooks:
- id: "test id"
cmd: "./reload.sh"
cwd: "/var/"
responseMsg: "hello, world"
branch: master
token: secretsuper
Install
ansible-galaxy install totaldebug/ansible-role-webhook
License
mit
Downloads
142
Owner