From 0bb3205dee7f68e6067873b995da251fc099a362 Mon Sep 17 00:00:00 2001 From: Petr Ruzicka Date: Fri, 19 Oct 2018 21:32:58 +0200 Subject: [PATCH] with_items should not be used any more - using loop instead (#47363) --- lib/ansible/modules/network/f5/bigip_device_group_member.py | 2 +- lib/ansible/modules/network/f5/bigip_device_trust.py | 2 +- lib/ansible/modules/network/f5/bigip_policy.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/f5/bigip_device_group_member.py b/lib/ansible/modules/network/f5/bigip_device_group_member.py index 5a0415dc39a..45fc8285b30 100644 --- a/lib/ansible/modules/network/f5/bigip_device_group_member.py +++ b/lib/ansible/modules/network/f5/bigip_device_group_member.py @@ -66,7 +66,7 @@ EXAMPLES = r''' server: lb.mydomain.com state: present user: admin - with_items: "{{ hostvars.keys() }}" + loop: "{{ hostvars.keys() }}" run_once: true delegate_to: localhost ''' diff --git a/lib/ansible/modules/network/f5/bigip_device_trust.py b/lib/ansible/modules/network/f5/bigip_device_trust.py index 550ad8bb2ba..179bcd3605f 100644 --- a/lib/ansible/modules/network/f5/bigip_device_trust.py +++ b/lib/ansible/modules/network/f5/bigip_device_trust.py @@ -84,7 +84,7 @@ EXAMPLES = r''' peer_hostname: "{{ item.inventory_hostname }}" peer_user: "{{ item.bigip_username }}" peer_password: "{{ item.bigip_password }}" - with_items: hostvars + loop: hostvars when: inventory_hostname in groups['master'] delegate_to: localhost ''' diff --git a/lib/ansible/modules/network/f5/bigip_policy.py b/lib/ansible/modules/network/f5/bigip_policy.py index 88a64493352..734b6026158 100644 --- a/lib/ansible/modules/network/f5/bigip_policy.py +++ b/lib/ansible/modules/network/f5/bigip_policy.py @@ -108,7 +108,7 @@ EXAMPLES = r''' name: "{{ item.name }}" conditions: "{{ item.conditions }}" actions: "{{ item.actions }}" - with_items: + loop: - name: rule1 actions: - type: forward