mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
with_items should not be used any more - using loop instead (#47363)
This commit is contained in:
@@ -66,7 +66,7 @@ EXAMPLES = r'''
|
|||||||
server: lb.mydomain.com
|
server: lb.mydomain.com
|
||||||
state: present
|
state: present
|
||||||
user: admin
|
user: admin
|
||||||
with_items: "{{ hostvars.keys() }}"
|
loop: "{{ hostvars.keys() }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ EXAMPLES = r'''
|
|||||||
peer_hostname: "{{ item.inventory_hostname }}"
|
peer_hostname: "{{ item.inventory_hostname }}"
|
||||||
peer_user: "{{ item.bigip_username }}"
|
peer_user: "{{ item.bigip_username }}"
|
||||||
peer_password: "{{ item.bigip_password }}"
|
peer_password: "{{ item.bigip_password }}"
|
||||||
with_items: hostvars
|
loop: hostvars
|
||||||
when: inventory_hostname in groups['master']
|
when: inventory_hostname in groups['master']
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ EXAMPLES = r'''
|
|||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
conditions: "{{ item.conditions }}"
|
conditions: "{{ item.conditions }}"
|
||||||
actions: "{{ item.actions }}"
|
actions: "{{ item.actions }}"
|
||||||
with_items:
|
loop:
|
||||||
- name: rule1
|
- name: rule1
|
||||||
actions:
|
actions:
|
||||||
- type: forward
|
- type: forward
|
||||||
|
|||||||
Reference in New Issue
Block a user