2015-10-19 56 views
0

我想使用ansible配置一個EOS交換機。我使用SSH密鑰建立了它們之間的連接,並測試了連接。我寫了一本簡單的手冊,並試圖執行它。但是,我得到一個消息:不支持的參數模塊:運輸Ansible arista EOS

我的劇本

- hosts: EOS 
    gather_facts: no 

    roles: 
    - arista.eos 

    tasks: 
    - name: Configuring VLAN 
    eos_vlan: vlanid=150 
    name=NewVLAN 
    transport={{ transport }} 
    username={{ username }} 
    password={{ password }} 
    debug=yes 
    register: vlan_cfg_output 
    - debug: var=vlan_cfg_output 

在我的清單文件

[EOS] 
Arista ansible_ssh_host=192.168.10.5 

[EOS:vars] 
ansible_ssh_user=ansible 
transport=http 
username=eapi 
password=password 

回答

0

下列哪個版本是你使用?

  • Ansible
  • pyeapi
  • ansible-EOS

我跑使用SSH與您的劇本和主機測試文件,並在我的交換機的一個正常工作。

PS:有問題的郵件,[email protected]。另外,您可以在此提出問題:https://github.com/arista-eosplus/ansible-eos/issues。這兩個選項都比SO好。

+0

嗨菲利普, 謝謝你的迴應,你會讓我知道Ansible,pyeapi和ansible-eos在使用哪個版本。你的意思是arista.eos或Ansible-eos?我將如何檢查該版本? – charan