diff --git a/ansible/roles/dell-switch/defaults/main.yml b/ansible/roles/dell-switch/defaults/main.yml index dc49a7c40..c36b4915f 100644 --- a/ansible/roles/dell-switch/defaults/main.yml +++ b/ansible/roles/dell-switch/defaults/main.yml @@ -6,7 +6,7 @@ dell_switch_delegate_to: dell_switch_type: # Authentication provider information. -dell_switch_provider: +dell_switch_provider: # List of configuration lines to apply to the switch. dell_switch_config: [] diff --git a/ansible/roles/dell-switch/templates/dellos9-config.j2 b/ansible/roles/dell-switch/templates/dellos9-config.j2 index 66bba042e..9b3cbc1fd 100644 --- a/ansible/roles/dell-switch/templates/dellos9-config.j2 +++ b/ansible/roles/dell-switch/templates/dellos9-config.j2 @@ -10,14 +10,14 @@ {% for interface, config in dell_switch_interface_config.items() %} {% if 'vlan' not in interface %} -interface {{ interface }} + interface {{ interface }} {% if config.description is defined %} -description {{ config.description }} + description {{ config.description }} {% endif %} {% for line in config.config %} -{{ line }} + {{ line }} {% endfor %} -exit + exit {% endif %} {% endfor %} @@ -25,11 +25,11 @@ exit {% if 'vlan' in interface %} interface {{ interface }} {% if config.description is defined %} -description {{ config.description }} + description {{ config.description }} {% endif %} {% for line in config.config %} -{{ line }} + {{ line }} {% endfor %} -exit + exit {% endif %} {% endfor %}