cdalbergue.mandrill_routes

Ansible Mandrill Routen

Diese Rolle hilft Ihnen, Mandrill-Eingänge und Routen von Ihrem Konto zu erstellen.

Anforderungen

Keine

Rollenvariablen

Variablen mit Standardeinstellungen:
mandrill_api_version: 1.0
mandrill_api_base_url: https://mandrillapp.com/api/{{mandrill_api_version}}
mandrill_api_inbounds_url: "{{ mandrill_api_base_url }}/inbound"
mandrill_api_output_format: .json
mandrill_inbound_key_operation: present # absent für löschen und check um mit Mandrill zu prüfen
mandrill_inbound_operation: add-domain
mandrill_inbounds_request_url: "{{ mandrill_api_inbounds_url }}/{{ mandrill_inbound_operation }}{{ mandrill_api_output_format }}"
mandrill_routes_operation: add-route
mandrill_routes_request_url: "{{ mandrill_api_inbounds_url }}/{{ mandrill_routes_operation }}{{ mandrill_api_output_format }}"

Weitere Variablen:
mandrill_api_key: myApiKey # erforderlich
mandrill_inbound_domain: example.com # die Domain, für die Sie eine Route erstellen möchten
mandrill_route_pattern: * # das Muster, das Sie für eine Route verwenden möchten
mandrill_route_url: https://example.com/webhook die URL, zu der Sie weiterleiten möchten

Abhängigkeiten

Keine

Beispiel-Playbook

Erstellen einer Domain:

- hosts: localhost
  roles:
    - role: mandrill_routes
      vars:
        mandrill_api_key: yourApiKey
        mandrill_inbound_domain: your_company-reply.com
        mandrill_route_pattern: *
        mandrill_route_url: https://your_company.com/webhook

Entfernen einer Domainroute

- hosts: localhost
  roles:
    - role: mandrill_routes
      vars:
        mandrill_route_operation: absent
        mandrill_api_key: yourApiKey
        mandrill_route_domain: your_company-reply.com

Überprüfen der Domain

- hosts: localhost
  roles:
    - role: mandrill_routes
      vars:
        mandrill_route_operation: check
        mandrill_api_key: yourApiKey
        mandrill_route_domain: your_company-reply.com

Lizenz

BSD

Autoreninformation

github.com/cdalbergue

Über das Projekt

Developer

Installieren
ansible-galaxy install cdalbergue.mandrill_routes
GitHub Repository
Lizenz
Unknown
Downloads
74