summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap/tasks/main.yml
blob: d6442e8f185e26e63b471be2c7ba0460837dd409 (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