cdalbergue.mandrill_routes
Routes Mandrill Ansible
Ce rôle vous aide à créer des inbounds et des routes Mandrill depuis votre compte.
Exigences
Aucune
Variables du rôle
Variables avec valeurs par défaut :
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 pour supprimer et check pour vérifier avec 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 }}"
Autres variables :
mandrill_api_key: myApiKey # Requis
mandrill_inbound_domain: example.com # le domaine pour lequel vous souhaitez créer une route
mandrill_route_pattern: * # le motif que vous souhaitez utiliser pour une route
mandrill_route_url: https://example.com/webhook l'URL vers laquelle vous souhaitez rediriger
Dépendances
Aucune
Exemple de Playbook
Créer un domaine :
- hosts: localhost
roles:
- role: mandrill_routes
vars:
mandrill_api_key: votreApiKey
mandrill_inbound_domain: votre_entreprise-reply.com
mandrill_route_pattern: *
mandrill_route_url: https://votre_entreprise.com/webhook
Supprimer une route de domaine :
- hosts: localhost
roles:
- role: mandrill_routes
vars:
mandrill_route_operation: absent
mandrill_api_key: votreApiKey
mandrill_route_domain: votre_entreprise-reply.com
Vérifier le domaine :
- hosts: localhost
roles:
- role: mandrill_routes
vars:
mandrill_route_operation: check
mandrill_api_key: votreApiKey
mandrill_route_domain: votre_entreprise-reply.com
Licence
BSD
Informations sur l'auteur
Installer
ansible-galaxy install cdalbergue.mandrill_routes
Licence
Unknown
Téléchargements
74
Propriétaire