cdalbergue.mandrill_routes

Rutas de Mandrill en Ansible

Este rol te ayuda a crear entradas y rutas de Mandrill desde tu cuenta.

Requisitos

Ninguno.

Variables del rol

Variables con valores predeterminados:
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: presente # ausente para eliminar y comprobar con Mandrill
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 }}"

Otras variables:
mandrill_api_key: myApiKey # Requerido
mandrill_inbound_domain: example.com # el dominio para el que deseas crear una ruta
mandrill_route_pattern: * # el patrón que deseas usar para una ruta
mandrill_route_url: https://example.com/webhook # la URL a la que quieres redirigir

Dependencias

Ninguna.

Ejemplo de Playbook

Creando un dominio:

- 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

Eliminando una ruta de dominio

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

Comprobando el dominio

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

Licencia

BSD

Información del autor

github.com/cdalbergue

Acerca del proyecto

Developer

Instalar
ansible-galaxy install cdalbergue.mandrill_routes
Licencia
Unknown
Descargas
74
Propietario