Modified blockinfile module's exmple using loop keyword (#59022)
This commit is contained in:
parent
9c5b3401ff
commit
88c4cf28ea
1 changed files with 4 additions and 4 deletions
|
@ -145,10 +145,10 @@ EXAMPLES = r'''
|
||||||
block: |
|
block: |
|
||||||
{{ item.ip }} {{ item.name }}
|
{{ item.ip }} {{ item.name }}
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK {{ item.name }}"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK {{ item.name }}"
|
||||||
with_items:
|
loop:
|
||||||
- { name: host1, ip: 10.10.1.10 }
|
- { name: host1, ip: 10.10.1.10 }
|
||||||
- { name: host2, ip: 10.10.1.11 }
|
- { name: host2, ip: 10.10.1.11 }
|
||||||
- { name: host3, ip: 10.10.1.12 }
|
- { name: host3, ip: 10.10.1.12 }
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
Loading…
Reference in a new issue