.. _ansible.utils.nthhost_filter: ********************* ansible.utils.nthhost ********************* **This filter returns the nth host within a network described by value.** Version added: 2.5.0 .. contents:: :local: :depth: 1 Synopsis -------- - This filter returns the nth host within a network described by value. To return the nth ip from a network, use the filter nthhost. - Nthhost also supports a negative value. Parameters ---------- .. raw:: html
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
query
string
|
nth host
|
||
value
string
/ required
|
The network address or range to test against.
|
Key | Returned | Description |
---|---|---|
data
string
|
Returns nth host from network
|