community.general.nginx_status_info – Retrieve information on nginx status.¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.nginx_status_info
.
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
community.general.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
community.general.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:
Authors¶
René Moser (@resmo)