.. _ansible.utils.macaddr_filter: ********************* ansible.utils.macaddr ********************* **macaddr / MAC address filters** Version added: 2.5.0 .. contents:: :local: :depth: 1 Synopsis -------- - This filter check if string is a MAC address and filter it - You can use the macaddr() filter to check if a given string is a MAC address or convert it between various formats. Parameters ---------- .. raw:: html
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
query
string
|
Default: ""
|
query string. Example. cisco,linux,unix etc
|
|
value
string
/ required
|
HW/MAC address.
|
Key | Returned | Description |
---|---|---|
data
string
|
mac/Hw address
|