mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
with_items should not be used any more - using loop instead (#47364)
This commit is contained in:
parent
0957b37721
commit
1c8f5c7db5
4 changed files with 5 additions and 5 deletions
|
@ -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'}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue