Code: Select all
ok: [sldwbm0361 -> 127.0.0.1] => {
"access_control_allow_methods": "*",
"access_control_allow_orgin": "*",
"changed": false,
"connection": "close",
"content": "{\"error\":\"Missing required variables\",\"missing\":[\"host_name\",\"service_description\",\"max_check_attempts\",\"check_interval\",\"retry_interval\",\"check_period\",\"notification_interval\",\"notification_period\",\"contacts OR contact_groups\"]}\n",
"content_length": "230",
"content_type": "application/json",
"cookies": {},
"date": "Mon, 05 Mar 2018 19:53:34 GMT",
"invocation": {
"module_args": {
"attributes": null,
"backup": null,
"body": {
"host_name": "sldwbm0361",
"service_description": "Service Status: Filebeat",
"use": "SAQ_Unix_nonprod_filebeat_services"
},
"body_format": "json",
"client_cert": null,
"client_key": null,
"content": null,
"creates": null,
"delimiter": null,
"dest": null,
"directory_mode": null,
"follow": false,
"follow_redirects": "safe",
"force": false,
"force_basic_auth": false,
"group": null,
"headers": {
"Content-Type": "application/json"
},
"http_agent": "ansible-httpget",
"method": "POST",
"mode": null,
"owner": null,
"regexp": null,
"remote_src": null,
"removes": null,
"return_content": true,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"status_code": [
"200"
],
"timeout": 120,
"unsafe_writes": null,
"url": "https://nagios.saq.qc.ca/nagiosxi/api/v1/config/service?apikey=APIKEY&force=1",
"url_password": null,
"url_username": null,
"use_proxy": true,
"validate_certs": false
}
},
"json": {
"error": "Missing required variables",
"missing": [
"host_name",
"service_description",
"max_check_attempts",
"check_interval",
"retry_interval",
"check_period",
"notification_interval",
"notification_period",
"contacts OR contact_groups"
]
},
"msg": "OK (230 bytes)",
"redirected": false,
"server": "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16",
"status": 200,
"url": "https://nagios.saq.qc.ca/nagiosxi/api/v1/config/service?apikey=APIKEY&force=1",
"x_powered_by": "PHP/5.4.16"
}