totaldebug.webhook

ansible-role-webhook

Rôle Ansible pour installer le serveur de webhooks adnanh

Fork de https://github.com/andsild/ansible-webhook-role.

Ce webhook a des variables configurables qui manquent dans le fork original.

Variables du rôle

  • webhook_version: Définit la version du webhook à installer 2.7.0
  • webhook_checksum: Définit le checksum pour la version à installer, par défaut md5:8bb63914f4ead672ff43191e91b0249f
  • webhook_user: Définit l'utilisateur que le webhook utilisera, par défaut webhook
  • webhook_group: Définit le groupe que le webhook utilisera, par défaut webhook
  • webhook_extra_groups: Définit les groupes supplémentaires nécessaires pour le webhook
  • webhook_port: Définit le port sur lequel le webhook écoutera, par défaut 9000
  • optional_args: Arguments optionnels, voir : Webhook-Parameters
  • githubhooks:[]: Requis pour les hooks Github
  • gitlabhooks:[]: Requis pour les hooks Gitlab
  • httphooks:[]: Requis pour les hooks http

Voici différentes configurations de hooks, vous pouvez en avoir plusieurs pour chaque hook nécessaire.

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
À propos du projet

ansible role to install adnanh webhooks

Installer
ansible-galaxy install totaldebug.webhook
Licence
mit
Téléchargements
151
Propriétaire