我正在尝试使用 ansible 将配置推送到瞻博网络设备上。我正在使用下面的剧本,使用 netconf 进行连接。我收到一条错误消息:无法加载配置:ConfigLoadError(严重性:错误,坏元素:设置,消息:错误:语法错误)
---
- name: Load merge config
connection: local
gather_facts: no
hosts: juniper
roles:
- Juniper.junos
tasks:
- name: Checking NETCONF connectivity
wait_for: host={{ inventory_hostname }} port=830
- name: Push config
junos_install_config:
host={{ inventory_hostname }}
file=push.conf
replace_config=true
我的配置文件包含所有设置命令。