From 327cff7274968cace97b29cc37361cf728907d00 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Tue, 6 Dec 2016 22:06:43 +0000 Subject: [PATCH] Native YAML - monitoring/pagerduty_alert (#18784) --- .../modules/monitoring/pagerduty_alert.py | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/ansible/modules/monitoring/pagerduty_alert.py b/lib/ansible/modules/monitoring/pagerduty_alert.py index f011b902703..48d81c7e7a9 100644 --- a/lib/ansible/modules/monitoring/pagerduty_alert.py +++ b/lib/ansible/modules/monitoring/pagerduty_alert.py @@ -78,37 +78,37 @@ options: EXAMPLES = ''' # Trigger an incident with just the basic options - pagerduty_alert: - name: companyabc - service_key=xxx - api_key:yourapikey - state=triggered - desc="problem that led to this trigger" + name: companyabc + service_key: xxx + api_key: yourapikey + state: triggered + desc: problem that led to this trigger # Trigger an incident with more options - pagerduty_alert: - service_key=xxx - api_key=yourapikey - state=triggered - desc="problem that led to this trigger" - incident_key=somekey - client="Sample Monitoring Service" - client_url=http://service.example.com + service_key: xxx + api_key: yourapikey + state: triggered + desc: problem that led to this trigger + incident_key: somekey + client: Sample Monitoring Service + client_url: http://service.example.com # Acknowledge an incident based on incident_key - pagerduty_alert: - service_key=xxx - api_key=yourapikey - state=acknowledged - incident_key=somekey - desc="some text for incident's log" + service_key: xxx + api_key: yourapikey + state: acknowledged + incident_key: somekey + desc: "some text for incident's log" # Resolve an incident based on incident_key - pagerduty_alert: - service_key=xxx - api_key=yourapikey - state=resolved - incident_key=somekey - desc="some text for incident's log" + service_key: xxx + api_key: yourapikey + state: resolved + incident_key: somekey + desc: "some text for incident's log" '''