cdalbergue.mandrill_routes

Ansible Mandrill Trasy

Ta rola pomoże Ci utworzyć trasy i odbiorniki mandrill z Twojego konta.

Wymagania

Brak

Zmienna Roli

Zmienna z domyślnymi wartościami:
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 do usunięcia i check do sprawdzenia w 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 }}"

Inne zmienne:
mandrill_api_key: myApiKey # Wymagane
mandrill_inbound_domain: example.com # domena, dla której chcesz utworzyć trasę
mandrill_route_pattern: * # wzorzec, który chcesz użyć dla trasy
mandrill_route_url: https://example.com/webhook # URL, na który chcesz przekierować

Zależności

Brak

Przykładowy Playbook

Tworzenie domeny:

- hosts: localhost
  roles:
    - role: mandrill_routes
      vars:
        mandrill_api_key: twojApiKey
        mandrill_inbound_domain: twoja_firma-odp.com
        mandrill_route_pattern: *
        mandrill_route_url: https://twoja_firma.com/webhook

Usuwanie trasy domeny:

- hosts: localhost
  roles:
    - role: mandrill_routes
      vars:
        mandrill_route_operation: absent
        mandrill_api_key: twojApiKey
        mandrill_route_domain: twoja_firma-odp.com

Sprawdzanie domeny:

- hosts: localhost
  roles:
    - role: mandrill_routes
      vars:
        mandrill_route_operation: check
        mandrill_api_key: twojApiKey
        mandrill_route_domain: twoja_firma-odp.com

Licencja

BSD

Informacje o autorze

github.com/cdalbergue

Zainstaluj
ansible-galaxy install cdalbergue.mandrill_routes
Licencja
Unknown
Pobrania
74
Właściciel