fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

Configure network switches #167

Open martbhell opened 7 years ago

martbhell commented 7 years ago

When ansible 2.2 is available in EPEL we can start experimenting with the Dell FTOS9 modules:

http://docs.ansible.com/ansible/list_of_network_modules.html

martbhell commented 7 years ago

This does not work (sometimes it connected to the N1524 switch but didn't return anything. Sometimes it didn't connect at all (just hung) ):

inventory:

[dell_switches]
10.1.1.254 ansible_port=1025

playbook:

---
- name: dellswitches
  hosts: dell_switches
  gather_facts: False
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: 1025
      transport: cli
      timeout: 1

  tasks:
    - debug: var=cli
    - dellos6_command:
        commands: show version