Added backup option in case we axe the hosts file

This commit is contained in:
2016-08-18 23:51:43 +12:00
parent b6049f8b8f
commit 06cb49cad7

View File

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