controlware.utils.ipsort (1.0.4) — filter

This filter sorts a given list of IP address xor IP networks.

| "added in version" 1.0.0 of controlware.utils"

Authors: Korte Noack (@kornoa)

Install collection

Install with ansible-galaxy collection install controlware.utils:==1.0.4


Add to requirements.yml

  collections:
    - name: controlware.utils
      version: 1.0.4

Description

This filter sorts a given list of IP address xor IP networks. returns: type: list description: IPv4 Address xor Network String elements: str

Inputs

    
reverse:
    default: false
    description: Invert sorting order
    required: false
    type: bool

ip_strings:
    description: List of strings representing IPv4 addresses xor networks
    elements: str
    required: true
    type: list