Add hosts configuration
This commit is contained in:
parent
9566a10281
commit
57ac0971d7
2 changed files with 18 additions and 0 deletions
|
|
@ -64,6 +64,14 @@
|
|||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: copy /etc/hosts template
|
||||
become: true
|
||||
template:
|
||||
src: 'hosts.j2'
|
||||
dest: '/etc/hosts'
|
||||
mode: '0644'
|
||||
owner: root
|
||||
|
||||
- name: copy mobile configuration
|
||||
template:
|
||||
src: 'mobile.wireguard.j2'
|
||||
|
|
|
|||
10
templates/hosts.j2
Normal file
10
templates/hosts.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
127.0.0.1 localhost
|
||||
127.0.1.1 zeus
|
||||
{{ lan_ip_address }} {{ domain_name }}
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
#::1 localhost ip6-localhost ip6-loopback
|
||||
#ff02::1 ip6-allnodes
|
||||
#ff02::2 ip6-allrouters
|
||||
Loading…
Add table
Add a link
Reference in a new issue