我正在尝试使用Ansible更改Cisco IOSXE设备上的配置。
---
- name: Using ios_interface
hosts: iosxe
gather_facts: no
tasks:
- name: Merge provided configuration with device configuration
ios_interfaces:
config:
- name: GigabitEthernet3
description: 'Configured by Ansible Network'
- name: Loopback100
description: 'Loopback Configured by Ansible Network'
state: merged
我总是遇到以下错误:
TASK [Merge provided configuration with device configuration] *************************************************************************************************************
fatal: [ios-xe-mgmt-latest.cisco.com]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ios_interfaces) module: provider Supported parameters include: config, state"}
我真的对此视而不见,我不知道是什么原因造成的,因为我只是在遵循官方documentation的一个简单示例。