Inchdev.mandrill_webhook

mandrill_webhook

Diese Rolle hilft Ihnen, einen Mandrill-Webhook von Ihrem Konto zu erstellen oder zu entfernen.
https://mandrillapp.com/api/docs/webhooks.curl.html

Anforderungen

Keine

Rollenvariablen

Die Variablen, die an diese Rolle übergeben werden können, sind wie folgt:

Variablen mit Standardwerten:
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 # Present, um einen Webhook zu erstellen; absent, um ihn zu entfernen
mandrill_operation: add # Intern verwendet
mandrill_request_url: "{{mandrill_api_webhook_url}}/{{mandrill_operation}}{{mandrill_api_output_format}}"
mandrill_webhook_description: Generiert über Ansible

Andere Variablen:

mandrill_webhook_id: 51 # Erforderlich für die Löschung
mandrill_api_key: myApiKey # Erforderlich
mandrill_webhook_url: http://example.com/mandrill_webhook

# Array von Operationen zur Konfiguration des Mandrill-Webhooks
mandrill_webhook_events:
  - click
  - open

Abhängigkeiten

Keine

Beispiel 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: Toller Webhook
        mandrill_api_key: myApiKey

Lizenz

BSD

Autoreninformation

https://github.com/Uelb

Über das Projekt

Developer

Installieren
ansible-galaxy install Inchdev.mandrill_webhook
GitHub Repository
Lizenz
Unknown
Downloads
91
Besitzer