summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dellos6/bootstrap')
-rw-r--r--roles/dellos6/bootstrap/tasks/main.yml6
-rw-r--r--roles/dellos6/bootstrap/templates/init.j22
2 files changed, 7 insertions, 1 deletions
diff --git a/roles/dellos6/bootstrap/tasks/main.yml b/roles/dellos6/bootstrap/tasks/main.yml
index 552aeddd..1c9fdc5e 100644
--- a/roles/dellos6/bootstrap/tasks/main.yml
+++ b/roles/dellos6/bootstrap/tasks/main.yml
@@ -1,4 +1,10 @@
---
+- name: only one ssh key for root?
+ delegate_to: localhost
+ when: (ssh_keys_root | length) > 1
+ fail:
+ msg: "users may have at the most one ssh-key"
+
- name: generate initial configuration
delegate_to: localhost
pause:
diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2
index 08e4310a..42623fec 100644
--- a/roles/dellos6/bootstrap/templates/init.j2
+++ b/roles/dellos6/bootstrap/templates/init.j2
@@ -4,7 +4,7 @@ configure
no ip domain-lookup
hostname {{ host_name }}
-vlan 42
+vlan {{ dellos6_mgmt_vlan }}
name mgmt
exit
{% if dellos6_mgmt_interface is defined and dellos6_mgmt_interface != '' %}