Inchdev.mandrill_webhook

mandrill_webhook

=========

This role allows you to create or delete a Mandrill webhook from your account. You can find more information here: Mandrill Webhooks Documentation

Requirements


No requirements needed.

Role Variables


Here are the variables that you can use with this role, along with their descriptions:

Default Variables:
- 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 # Use 'present' to create a webhook, 'absent' to delete it
- mandrill_operation: add # Used internally
- mandrill_request_url: "{{mandrill_api_webhook_url}}/{{mandrill_operation}}{{mandrill_api_output_format}}"
- mandrill_webhook_description: Generated via Ansible

Other Variables:
- mandrill_webhook_id: 51 # Needed for deletion
- mandrill_api_key: myApiKey # Required key
- mandrill_webhook_url: http://example.com/mandrill_webhook

# List of events to configure the Mandrill webhook
- mandrill_webhook_events:
  - click
  - open

Dependencies


No dependencies.

Example 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: Awesome webhook
        mandrill_api_key: myApiKey

License


BSD

Author Information


More information can be found at: GitHub Profile

Informazioni sul progetto

Developer

Installa
ansible-galaxy install Inchdev.mandrill_webhook
Licenza
Unknown
Download
91
Proprietario