From 06cb49cad786101d6d8816fdbb36c07b891177e1 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Thu, 18 Aug 2016 23:51:43 +1200 Subject: [PATCH] Added backup option in case we axe the hosts file --- tasks/RedHat.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index 8b4c00b..a504aaa 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -87,6 +87,7 @@ regexp: "{{ item.regexp }}" line: "{{ item.line }}" backrefs: yes + backup: yes with_items: - {regexp: "^127.0.0.1.+localdomain4$", line: "127.0.0.1 localhost {{ ansible_hostname }}"