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