cdalbergue.mandrill_routes

Ansible Mandrill ルート

この役割は、あなたのアカウントから mandrill のインバウンズとルートを作成するのを助けます。

要件

なし

役割変数

デフォルトの変数 :
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、mandrill で確認するには check
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 }}"

その他の変数 :
mandrill_api_key: myApiKey # 必須
mandrill_inbound_domain: example.com # ルートを作成したいドメイン
mandrill_route_pattern: * # ルートに使用したいパターン
mandrill_route_url: https://example.com/webhook リダイレクトしたい URL

依存関係

なし

例のプレイブック

ドメインを作成する:

- 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

ドメインルートを削除する:

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

ドメインを確認する:

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

ライセンス

BSD

著者情報

github.com/cdalbergue

プロジェクトについて

Developer

インストール
ansible-galaxy install cdalbergue.mandrill_routes
ライセンス
Unknown
ダウンロード
74