From 93f47524d9d2a8f77c9c6ecac050514da7392335 Mon Sep 17 00:00:00 2001 From: tazle Date: Wed, 8 Jun 2016 17:22:52 +0300 Subject: [PATCH] Fixed /etc/hosts example for blockinfile (#2387) - Fixed name - Fixed name/ip order in template --- files/blockinfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/blockinfile.py b/files/blockinfile.py index da67e2d4b37..258284ea5af 100755 --- a/files/blockinfile.py +++ b/files/blockinfile.py @@ -134,11 +134,11 @@ EXAMPLES = r""" marker: "" 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 }