1
0
Fork 0

disable hostname in /etc/hosts

This commit is contained in:
Massaki Archambault 2021-11-12 17:19:02 -05:00
parent b630fba793
commit 4653d2c573
1 changed files with 7 additions and 7 deletions

View File

@ -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 }}