disable hostname in /etc/hosts
This commit is contained in:
parent
b630fba793
commit
4653d2c573
|
@ -36,10 +36,10 @@
|
||||||
hostname:
|
hostname:
|
||||||
name: '{{ inventory_hostname }}'
|
name: '{{ inventory_hostname }}'
|
||||||
|
|
||||||
- name: Configure hostname in /etc/hosts
|
# - name: Configure hostname in /etc/hosts
|
||||||
blockinfile:
|
# blockinfile:
|
||||||
dest: /etc/hosts
|
# dest: /etc/hosts
|
||||||
marker: '# {mark} ANSIBLE MANAGED BLOCK HOSTNAME'
|
# marker: '# {mark} ANSIBLE MANAGED BLOCK HOSTNAME'
|
||||||
block: |
|
# block: |
|
||||||
127.0.0.1 {{ inventory_hostname }}
|
# 127.0.0.1 {{ inventory_hostname }}
|
||||||
::1 {{ inventory_hostname }}
|
# ::1 {{ inventory_hostname }}
|
Loading…
Reference in New Issue