1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

with_items should not be used any more - using loop instead (#47363)

This commit is contained in:
Petr Ruzicka 2018-10-19 21:32:58 +02:00 committed by Tim Rupp
parent 6c612c9e6c
commit 0bb3205dee
3 changed files with 3 additions and 3 deletions

View file

@ -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
'''

View file

@ -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
'''

View file

@ -108,7 +108,7 @@ EXAMPLES = r'''
name: "{{ item.name }}"
conditions: "{{ item.conditions }}"
actions: "{{ item.actions }}"
with_items:
loop:
- name: rule1
actions:
- type: forward