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

This commit is contained in:
Petr Ruzicka 2018-12-14 18:13:32 +01:00 committed by ansibot
parent 0957b37721
commit 1c8f5c7db5
4 changed files with 5 additions and 5 deletions

View file

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