From 3b5826b8283f4a340a560a26672bbc7af4ed364a Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Sun, 4 Dec 2016 10:54:53 +0000 Subject: [PATCH] Native YAML - monitoring/datadog_event (#3637) --- .../extras/monitoring/datadog_event.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/datadog_event.py b/lib/ansible/modules/extras/monitoring/datadog_event.py index 88d921bf912..30fb2cafd96 100644 --- a/lib/ansible/modules/extras/monitoring/datadog_event.py +++ b/lib/ansible/modules/extras/monitoring/datadog_event.py @@ -95,14 +95,19 @@ options: EXAMPLES = ''' # Post an event with low priority -datadog_event: title="Testing from ansible" text="Test!" priority="low" - api_key: "9775a026f1ca7d1c6c5af9d94d9595a4" - app_key: "j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN" +- datadog_event: + title: Testing from ansible + text: Test + priority: low + api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 + app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN # Post an event with several tags -datadog_event: title="Testing from ansible" text="Test!" - api_key: "9775a026f1ca7d1c6c5af9d94d9595a4" - app_key: "j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN" - tags=aa,bb,#host:{{ inventory_hostname }} +- datadog_event: + title: Testing from ansible + text: Test + api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 + app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN + tags: 'aa,bb,#host:{{ inventory_hostname }}' ''' # Import Datadog