set hostname correctly
This commit is contained in:
parent
93787bcad1
commit
e7f33a9311
1 changed files with 4 additions and 1 deletions
|
@ -54,4 +54,7 @@
|
||||||
src: "templates/etc/resolv.conf.j2"
|
src: "templates/etc/resolv.conf.j2"
|
||||||
dest: "/mnt/etc/resolv.conf"
|
dest: "/mnt/etc/resolv.conf"
|
||||||
- name: "Set hostname."
|
- name: "Set hostname."
|
||||||
shell: "echo {{ inventory_hostname }} > /etc/hostname"
|
template:
|
||||||
|
src: "templates/etc/hostname.j2"
|
||||||
|
dest: "/mnt/etc/hostname"
|
||||||
|
mode: "644"
|
||||||
|
|
Loading…
Reference in a new issue