generate etc/hosts

This commit is contained in:
Jörg Thalheim 2014-08-06 08:36:55 +02:00
parent 125d61f433
commit 1724ab2bea
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,6 @@
- name: resolv.conf
copy: src=resolv.conf dest=/etc/resolv.conf mode=0644
copy: src=resolv.conf dest=/etc/resolv.conf mode=0644 backup=yes
- name: locale.conf
copy: src=locale.conf dest=/etc/locale.conf mode=0644
copy: src=locale.conf dest=/etc/locale.conf mode=0644 backup=yes
- name: /etc/hosts
template: src=hosts.j2 dest=/etc/hosts mode=0644 backup=yes

View File

@ -0,0 +1,10 @@
# THIS FILE IS MANAGED BY ANSIBLE, DO NOT EDIT MANUALLY
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 {{ ansible_nodename }}.lxc {{ ansible_nodename }} localhost
::1 {{ ansible_nodename }}.lxc {{ ansible_nodename }} localhost
# End of file