Fixed /etc/hosts example for blockinfile (#2387)
- Fixed name - Fixed name/ip order in template
This commit is contained in:
parent
1f1e15ae00
commit
93f47524d9
1 changed files with 2 additions and 2 deletions
|
@ -134,11 +134,11 @@ EXAMPLES = r"""
|
|||
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
||||
content: ""
|
||||
|
||||
- name: insert/update "Match User" configuation block in /etc/ssh/sshd_config
|
||||
- name: Add mappings to /etc/hosts
|
||||
blockinfile:
|
||||
dest: /etc/hosts
|
||||
block: |
|
||||
{{item.name}} {{item.ip}}
|
||||
{{item.ip}} {{item.name}}
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK {{item.name}}"
|
||||
with_items:
|
||||
- { name: host1, ip: 10.10.1.10 }
|
||||
|
|
Loading…
Reference in a new issue