From d622369ccc216c422d4613c48d4369a602d58c34 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 6 Sep 2015 23:15:13 +0200 Subject: [PATCH] Fixing error in configuration: dhcp range has to be assigned to internal, not external, interface. --- roles/nethcfg/tasks/reconfig_srv.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nethcfg/tasks/reconfig_srv.yml b/roles/nethcfg/tasks/reconfig_srv.yml index 4e7aeb7..4d184b2 100644 --- a/roles/nethcfg/tasks/reconfig_srv.yml +++ b/roles/nethcfg/tasks/reconfig_srv.yml @@ -46,13 +46,13 @@ when: chk_passstr|changed - name: Verifica configurazione DHCP - shell: /sbin/e-smith/db dhcp getprop {{ extnic }} DhcpRangeStart + shell: /sbin/e-smith/db dhcp getprop {{ intnic }} DhcpRangeStart sudo: yes ignore_errors: true register: chk_dhcp - name: Configurazione servizio DHCP - shell: /sbin/e-smith/db dhcp set {{ extnic }} range DhcpRangeStart {{ ansible_local.domain.dhcprange_start }} DhcpRangeEnd {{ ansible_local.domain.dhcprange_end }} status enabled + shell: /sbin/e-smith/db dhcp set {{ intnic }} range DhcpRangeStart {{ ansible_local.domain.dhcprange_start }} DhcpRangeEnd {{ ansible_local.domain.dhcprange_end }} status enabled sudo: yes when: chk_dhcp|failed