set hostname correctly

This commit is contained in:
f 2022-06-19 14:55:05 -03:00
parent 93787bcad1
commit e7f33a9311

View file

@ -54,4 +54,7 @@
src: "templates/etc/resolv.conf.j2"
dest: "/mnt/etc/resolv.conf"
- name: "Set hostname."
shell: "echo {{ inventory_hostname }} > /etc/hostname"
template:
src: "templates/etc/hostname.j2"
dest: "/mnt/etc/hostname"
mode: "644"