summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap/tasks/main.yml
blob: 1c9fdc5eb1576e2c50094562a6fd2a9b8c8e8888 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- 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:
    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