1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed /etc/hosts example for blockinfile (#2387)

- Fixed name
- Fixed name/ip order in template
This commit is contained in:
tazle 2016-06-08 17:22:52 +03:00 committed by Matt Clay
parent 8c934abfd5
commit 03be75fa16

View file

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