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 }}"
|
||||
line: "{{ item.line }}"
|
||||
backrefs: yes
|
||||
backup: yes
|
||||
with_items:
|
||||
- {regexp: "^127.0.0.1.+localdomain4$",
|
||||
line: "127.0.0.1 localhost {{ ansible_hostname }}"
|
||||
|
||||
Reference in New Issue
Block a user