Explorar o código

use ansible_hostname for kodi nix hostname

Blaine Story %!s(int64=2) %!d(string=hai) anos
pai
achega
9d299b545c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      roles/kodi-config/templates/configuration.nix.j2

+ 1 - 1
roles/kodi-config/templates/configuration.nix.j2

@@ -15,7 +15,7 @@
   boot.loader.systemd-boot.enable = true; 
 
   # Set hostname
-  networking.hostName = "kodi-nix"; 
+  networking.hostName = "{{ ansible_hostname }}";
 
   # Set time zone.
   time.timeZone = "America/Los_Angeles";