summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap/tasks/main.yml
blob: af3bbcf123ff84d03ec32b20d46ece0df81a0236 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: only one ssh key for root?
  assert:
    that: (ssh_keys_root | length) > 1
    fail_msg: "users may have at the most one ssh-key"

- name: generate initial configuration
  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
  register: switch_facts

- debug:
    var: switch_facts