From ae57b9531376be5dcb91d5815e716c4ef4d1abc7 Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Tue, 17 Jan 2017 10:25:53 +0100 Subject: [PATCH] Documentation fix (#20198) --- docs/docsite/rst/playbooks_filters_ipaddr.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docsite/rst/playbooks_filters_ipaddr.rst b/docs/docsite/rst/playbooks_filters_ipaddr.rst index c76b921c76e..cc9baf61130 100644 --- a/docs/docsite/rst/playbooks_filters_ipaddr.rst +++ b/docs/docsite/rst/playbooks_filters_ipaddr.rst @@ -429,25 +429,25 @@ a first argument, ``ipsubnet()`` filter will instead return biggest subnet that contains a given IP address:: # {{ address | ipsubnet(20) }} - 192.168.128.0/18 + 192.168.128.0/20 By specifying an index number as a second argument, you can select smaller and smaller subnets:: # First subnet - # {{ subnet | ipsubnet(18, 0) }} + # {{ address | ipsubnet(18, 0) }} 192.168.128.0/18 # Last subnet - # {{ subnet | ipsubnet(18, -1) }} + # {{ address | ipsubnet(18, -1) }} 192.168.144.4/31 # Fifth subnet - # {{ subnet | ipsubnet(18, 5) }} + # {{ address | ipsubnet(18, 5) }} 192.168.144.0/23 # Fifth to last subnet - # {{ subnet | ipsubnet(18, -5) }} + # {{ address | ipsubnet(18, -5) }} 192.168.144.0/27 You can use ``ipsubnet()`` filter with ``ipaddr()`` filter to for example split