Try to make the etc hosts part idempotent
This commit is contained in:
parent
87911f029d
commit
7dec754543
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- '^127\.0\.0\.1(\s+){{ inventory_hostname }}.*'
|
- '^127\.0\.0\.1(\s+){{ inventory_hostname }}.*'
|
||||||
- '^::1(\s+){{ inventory_hostname }}.*'
|
- '^::1(\s+){{ inventory_hostname }}.*'
|
||||||
- '^::1(\s+)localhost.*'
|
- '^::1(\s+)localhost(\s+).*'
|
||||||
- '^127.0.0.1(\s+)localhost.*'
|
|
||||||
|
|
||||||
- name: localhost in hosts file
|
- name: localhost in hosts file
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue