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