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