Make sure hostname can be set manually, cleanup/fixes.

This commit is contained in:
Andreas B. Mundt 2019-06-08 23:24:25 +02:00
parent 0d534d8939
commit f0004b6fe9
3 changed files with 24 additions and 9 deletions

View file

@ -10,10 +10,10 @@
force: no
- name: make the hostname resolvable from the LAN
replace:
dest: /etc/hosts
regexp: '(127.0.1.1\s+){{ hostname }}'
replace: '\1localhost\n{{ ipaddr_lan }} {{ hostname }}'
lineinfile:
path: /etc/hosts
insertafter: '^127.0.1.1'
line: '{{ ipaddr_lan }} {{ hostname }}'
- name: add auto pxe boot entry to di-netboot-assistant
blockinfile:

View file

@ -9,11 +9,9 @@
apt:
upgrade: dist
autoremove: yes
autoclean: yes
- name: install some packages
- name: install etckeeper
apt:
name: etckeeper
state: latest
#- name: clean apt package cache
# command: apt clean