mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
with_items should not be used any more - using loop instead (#47364)
This commit is contained in:
@@ -112,7 +112,7 @@ EXAMPLES = r'''
|
||||
esxi_hostname: '{{ inventory_hostname }}'
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
with_items:
|
||||
loop:
|
||||
- { 'name': 'NasDS_vol01', 'server': 'nas01', 'path': '/mnt/vol01', 'type': 'nfs'}
|
||||
- { 'name': 'NasDS_vol02', 'server': 'nas01', 'path': '/mnt/vol02', 'type': 'nfs'}
|
||||
|
||||
@@ -129,7 +129,7 @@ EXAMPLES = r'''
|
||||
esxi_hostname: '{{ inventory_hostname }}'
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
with_items:
|
||||
loop:
|
||||
- { 'name': 'NasDS_vol03', 'server': 'nas01,nas02', 'path': '/mnt/vol01', 'type': 'nfs41'}
|
||||
- { 'name': 'NasDS_vol04', 'server': 'nas01,nas02', 'path': '/mnt/vol02', 'type': 'nfs41'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user