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.yml10
1 files changed, 4 insertions, 6 deletions
diff --git a/roles/dellos6/bootstrap/tasks/main.yml b/roles/dellos6/bootstrap/tasks/main.yml
index d6442e8f..af3bbcf1 100644
--- a/roles/dellos6/bootstrap/tasks/main.yml
+++ b/roles/dellos6/bootstrap/tasks/main.yml
@@ -1,19 +1,17 @@
---
- 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"
+ assert:
+ that: (ssh_keys_root | length) > 1
+ fail_msg: "users may have at the most one ssh-key"
- name: generate initial configuration
- delegate_to: localhost
pause:
prompt: "\n## Please apply the following configuration using the serial console!!!\n\n{{ lookup('template', 'init.j2') }}\n\n## end .. press ENTER to continue!!!!!\n"
- name: get config facts from the switch
dellos6_facts:
gather_subset:
- - hardware
+ - hardware
register: switch_facts
- debug: