Inchdev.mandrill_webhook

mandrill_webhook

Ce rôle vous aide à créer ou à supprimer un webhook mandrill de votre compte.
https://mandrillapp.com/api/docs/webhooks.curl.html

Exigences

Aucune

Variables de rôle

Les variables qui peuvent être passées à ce rôle et une brève description à leur sujet sont les suivantes :

Variables avec valeurs par défaut :
mandrill_api_version: 1.0
mandrill_api_webhook_url: https://mandrillapp.com/api/{{mandrill_api_version}}/webhooks
mandrill_api_output_format: .json
mandrill_webhook_operation: présent # Présent pour créer un webhook, absent pour le supprimer
mandrill_operation: ajouter # Utilisé en interne
mandrill_request_url: "{{mandrill_api_webhook_url}}/{{mandrill_operation}}{{mandrill_api_output_format}}"
mandrill_webhook_description: Généré via ansible


Autres variables :


mandrill_webhook_id: 51 # Nécessaire pour la suppression
mandrill_api_key: myApiKey # Nécessaire
mandrill_webhook_url: http://example.com/mandrill_webhook

# Tableau des opérations pour configurer le webhook mandrill
mandrill_webhook_events:
  - clic
  - ouverture

Dépendances

Aucune

Exemple de Playbook

---
- hosts: local
  roles:
    - role: mandrill_webhook
      vars:
        mandrill_webhook_id: 51
        mandrill_api_key: myApiKey
        mandrill_webhook_operation: absent

---
- hosts: local
  roles:
    - role: mandrill_webhook
      vars:
        mandrill_webhook_url: http://example.com/mandrill_webhook
        mandrill_webhook_description: Super webhook
        mandrill_api_key: myApiKey

Licence

BSD

Informations sur l'auteur

https://github.com/Uelb

À propos du projet

Developer

Installer
ansible-galaxy install Inchdev.mandrill_webhook
Licence
Unknown
Téléchargements
91
Propriétaire