Make sure hostname can be set manually, cleanup/fixes.
This commit is contained in:
parent
0d534d8939
commit
f0004b6fe9
3 changed files with 24 additions and 9 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue