ansible.utils.slaac (4.0.0) — filter

This filter returns the SLAAC address within a network for a given HW/MAC address.

| "added in version" 2.5.0 of ansible.utils"

Authors: Ashwini Mhatre (@amhatre)

Install collection

Install with ansible-galaxy collection install ansible.utils:==4.0.0


Add to requirements.yml

  collections:
    - name: ansible.utils
      version: 4.0.0

Description

This filter returns the SLAAC address within a network for a given HW/MAC address.

The filter slaac() generates an IPv6 address for a given network and a MAC Address in Stateless Configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
#### examples
- name: The filter slaac() generates an IPv6 address for a given network and a MAC Address in Stateless Configuration.
  debug:
    msg: "{{ 'fdcf:1894:23b5:d38c:0000:0000:0000:0000' | slaac('c2:31:b3:83:bf:2b') }}"

Inputs

    
query:
    description: nth host
    type: str

value:
    description: The network address or range to test against.
    required: true
    type: str

Outputs

data:
  description:
  - Returns the SLAAC address within a network for a given HW/MAC address.
  type: str