From f5fec411deb1fc69b8f1c1667147e7328af4376c Mon Sep 17 00:00:00 2001 From: Maciej Delmanowski Date: Sun, 29 Mar 2015 23:34:58 +0200 Subject: [PATCH] Add IPv4 default router if found in Ansible facts --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/defaults/main.yml b/defaults/main.yml index c942695..a399fe1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -192,6 +192,7 @@ dhcpd_subnets: [ '{{ dhcpd_subnet_default[dhcpd_ipversion] }}' ] dhcpd_subnet_default: '4': subnet: '{{ ansible_default_ipv4.network + "/" + ansible_default_ipv4.netmask }}' + routers: '{{ ansible_default_ipv4.gateway | default("") }}' comment: 'Generated automatically by Ansible' '6': subnet: '{{ ansible_default_ipv6.address + "/" + ansible_default_ipv6.prefix }}'