From 8c444b1379f9db5aa800736f83500ef574db14e0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 22 Jun 2019 00:11:54 +0200 Subject: dellos6: fix idempotence --- roles/dellos6/bootstrap/templates/init.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/dellos6/bootstrap/templates/init.j2') diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2 index 8a0c1ae4..eef1e0a6 100644 --- a/roles/dellos6/bootstrap/templates/init.j2 +++ b/roles/dellos6/bootstrap/templates/init.j2 @@ -7,6 +7,11 @@ hostname {{ host_name }} vlan 42 name mgmt exit +{% if dellos6_mgmt_interface is defined and dellos6_mgmt_interface != '' %} +interface {{ dellos6_mgmt_interface }} +switchport access vlan {{ dellos6_mgmt_vlan }} +exit +{% endif %} interface vlan {{ dellos6_mgmt_vlan }} ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }} exit -- cgit v1.2.3