From 633396c71b6c3e484b280e4c9c71492c45533fe7 Mon Sep 17 00:00:00 2001 From: Baptiste Mille-Mathias Date: Mon, 30 Nov 2020 22:25:22 +0100 Subject: [PATCH] Update playbooks_filters_ipaddr.rst (#72705) (#72755) Fix the order of the arguments for ansible.netcommon.reduce_on_network. Pass the network as the argument and the list of IP addresses as the filter input. (cherry picked from commit 454ac6420ebe83dde34be723e4b0cf1d3ff26c2d) Co-authored-by: Pablo Martinez --- docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst b/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst index 6fba27ebfcc..0a6d48255c7 100644 --- a/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst +++ b/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst @@ -505,7 +505,7 @@ The ``network_in_network`` filter returns whether an address or a network passed To check whether multiple addresses belong to a network, use the ``reduce_on_network`` filter:: - # {{ '192.168.0.0/24' | ansible.netcommon.reduce_on_network( ['192.168.0.34', '10.3.0.3', '192.168.2.34'] ) }} + # {{ ['192.168.0.34', '10.3.0.3', '192.168.2.34'] | ansible.netcommon.reduce_on_network( '192.168.0.0/24' ) }} ['192.168.0.34']