nginx_status_info – Retrieve information on nginx status¶
New in version 2.9.
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
timeout
integer
|
Default: 10
|
HTTP connection timeout in seconds.
|
url
string
/ required
|
URL of the nginx status.
|
Notes¶
Note
- See http://nginx.org/en/docs/http/ngx_http_stub_status_module.html for more information.
Examples¶
# Gather status info from nginx on localhost
- name: get current http stats
nginx_status_info:
url: http://localhost/nginx_status
register: result
# Gather status info from nginx on localhost with a custom timeout of 20 seconds
- name: get current http stats
nginx_status_info:
url: http://localhost/nginx_status
timeout: 20
register: result
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- René Moser (@resmo)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.