Inchdev.mandrill_webhook
mandrill_webhook
Este rol te ayuda a crear o eliminar un webhook de Mandrill de tu cuenta. https://mandrillapp.com/api/docs/webhooks.curl.html
Requisitos
Ninguno
Variables del Rol
Las variables que se pueden pasar a este rol y una breve descripción sobre ellas son las siguientes:
Variables con valores predeterminados:
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: present # Presente para crear un webhook, ausente para eliminarlo
mandrill_operation: add # Usado internamente
mandrill_request_url: "{{mandrill_api_webhook_url}}/{{mandrill_operation}}{{mandrill_api_output_format}}"
mandrill_webhook_description: Generado a través de ansible
Otras variables:
mandrill_webhook_id: 51 # Requerido para la eliminación
mandrill_api_key: myApiKey # Requerido
mandrill_webhook_url: http://example.com/mandrill_webhook
# Array de operaciones para configurar el webhook de Mandrill
mandrill_webhook_events:
- click
- open
Dependencias
Ninguna
Ejemplo 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: Webhook impresionante
mandrill_api_key: myApiKey
Licencia
BSD
Información del Autor
Instalar
ansible-galaxy install Inchdev.mandrill_webhook
Licencia
Unknown
Descargas
91
Propietario