diff --git a/group_vars/all b/group_vars/all index 392b2b2..a4286b9 100644 --- a/group_vars/all +++ b/group_vars/all @@ -15,3 +15,4 @@ proxmox_user: "root@pam" proxmox_host: "10.0.0.153" proxmox_password: "{{ lookup('env', 'PROXMOX_PASSWORD') }}" ubuntu_template_vm_name: "ubuntu-server-1404" +dns_server: "10.0.0.204" diff --git a/roles/configure-interfaces/templates/eth.cfg.j2 b/roles/configure-interfaces/templates/eth.cfg.j2 index 7fb4edc..69b0687 100644 --- a/roles/configure-interfaces/templates/eth.cfg.j2 +++ b/roles/configure-interfaces/templates/eth.cfg.j2 @@ -4,4 +4,4 @@ iface {{ interface_name }} inet static address {{ ansible_host }} netmask 255.255.255.0 gateway 10.0.0.1 -dns-nameservers 10.0.0.204 8.8.8.8 +dns-nameservers {{ dns_server }} 8.8.8.8