community.general.nginx_status_facts – Retrieve nginx status facts.¶
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_facts
.
DEPRECATED¶
- Removed in
version 3.0.0
- Why
Deprecated in favour of
_info
module.- Alternative
Use community.general.nginx_status_info instead.
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 facts from nginx on localhost
- name: Get current http stats
community.general.nginx_status_facts:
url: http://localhost/nginx_status
# Gather status facts from nginx on localhost with a custom timeout of 20 seconds
- name: Get current http stats
community.general.nginx_status_facts:
url: http://localhost/nginx_status
timeout: 20
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module will be removed in version 3.0.0. [deprecated]
For more information see DEPRECATED.
Authors¶
René Moser (@resmo)