Inchdev.mandrill_webhook
mandrill_webhook
この役割は、あなたのアカウントからmandrillのWebhookを作成または削除するのを手助けします。 https://mandrillapp.com/api/docs/webhooks.curl.html
要件
なし
役割変数
この役割に渡すことができる変数とその簡単な説明は以下の通りです:
デフォルトがある変数 :
mandrill_api_version: 1.0
mandrill_api_webhook_url: https://mandrillapp.com/api/{{mandrill_api_version}}/webhooks
mandrill_api_output_format: .json
mandrill_webhook_operation: present # Webhookを作成する場合はpresent、削除する場合はabsent
mandrill_operation: add # 内部で使用されます
mandrill_request_url: "{{mandrill_api_webhook_url}}/{{mandrill_operation}}{{mandrill_api_output_format}}"
mandrill_webhook_description: Ansibleを通じて生成されました
他の変数 :
mandrill_webhook_id: 51 # 削除に必要
mandrill_api_key: myApiKey # 必要
mandrill_webhook_url: http://example.com/mandrill_webhook
# mandrill webhookを設定するための操作の配列
mandrill_webhook_events:
- click
- open
依存関係
なし
例のプレイブック
---
- hosts: local
roles:
- role: mandrill_webhook
vars:
mandrill_webhook_id: 51
mandrill_api_key: myApiKey
mandrill_webhook_operation: absent
---
- hosts: local
roles:
- role: mandrill_webhook
vars:
mandrill_webhook_url: http://example.com/mandrill_webhook
mandrill_webhook_description: すばらしいWebhook
mandrill_api_key: myApiKey
ライセンス
BSD