totaldebug.webhook
ansible-role-webhook
Ansible role for installing the adnanh webhooks server.
This is a modified version of https://github.com/andsild/ansible-webhook-role.
This version includes customizable settings that are not available in the original.
Role Variables
webhook_version: Defines the version of the webhook to install, default is2.7.0.webhook_checksum: Sets the checksum for the version being installed, defaults tomd5:8bb63914f4ead672ff43191e91b0249f.webhook_user: Specifies the user that the webhook will run as, default iswebhook.webhook_group: Specifies the group that the webhook will run under, default iswebhook.webhook_extra_groups: Defines any additional groups that the webhook needs.webhook_port: Sets the port for the webhook to listen on, default is9000.optional_args: Additional optional arguments, see: Webhook-Parameters.githubhooks:[]: Required settings for GitHub hooks.gitlabhooks:[]: Required settings for GitLab hooks.httphooks:[]: Required settings for HTTP hooks.
Here are examples of different hook configurations. You can add multiple hooks as needed:
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
Informazioni sul progetto
ansible role to install adnanh webhooks
Installa
ansible-galaxy install totaldebug.webhookLicenza
mit
Download
159
Proprietario
