Using defaults to configure DHCP server, missing from previous tests.

This commit is contained in:
Emiliano Vavassori 2015-09-06 22:49:50 +02:00
parent f21268a509
commit 731386813d
1 changed files with 2 additions and 2 deletions

View File

@ -46,13 +46,13 @@
when: chk_passstr|changed
- name: Verifica configurazione DHCP
shell: /sbin/e-smith/db dhcp getprop eth1 DhcpRangeStart
shell: /sbin/e-smith/db dhcp getprop {{ extnic }} DhcpRangeStart
sudo: yes
ignore_errors: true
register: chk_dhcp
- name: Configurazione servizio DHCP
shell: /sbin/e-smith/db dhcp set eth1 range DhcpRangeStart {{ ansible_local.domain.dhcprange_start }} DhcpRangeEnd {{ ansible_local.domain.dhcprange_end }} status enabled
shell: /sbin/e-smith/db dhcp set {{ extnic }} range DhcpRangeStart {{ ansible_local.domain.dhcprange_start }} DhcpRangeEnd {{ ansible_local.domain.dhcprange_end }} status enabled
sudo: yes
when: chk_dhcp|failed