You've already forked ansible-role-common
Added backup option in case we axe the hosts file
This commit is contained in:
@@ -87,6 +87,7 @@
|
|||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
|
backup: yes
|
||||||
with_items:
|
with_items:
|
||||||
- {regexp: "^127.0.0.1.+localdomain4$",
|
- {regexp: "^127.0.0.1.+localdomain4$",
|
||||||
line: "127.0.0.1 localhost {{ ansible_hostname }}"
|
line: "127.0.0.1 localhost {{ ansible_hostname }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user