Commit a1056861 authored by thiolliere's avatar thiolliere
Browse files

set hostname in hosts in ansiblecube.py to avoid warning

parent 0cf804d3
......@@ -19,6 +19,7 @@ def run(machine, name, timezone, wifi_pwd, kalite, zim_install):
hostname = name.replace("_", "-")
machine.exec_cmd("sudo hostname %s" % hostname)
machine.exec_cmd("sudo echo \"127.0.0.1 %s\" >> /etc/hosts" % hostname)
package_management = [{"name": x, "status": "present"} for x in zim_install]
device_list = {hostname: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment