我正在使用下面的剧本来更新xml文件中的特定元素值及其抛出的错误。我已经安装了python-lxml模块以及ansible版本2.7.8
---
- name: Set element
xml:
path: /home/emsuser/appD_agent_master/machineagent/machine_agent/conf/controller-info.xml
xpath: /controller-info/application-name
value: "Vicom Enterprise blackout Manager"
...回应:
ERROR! 'xml' is not a valid attribute for a Play
The error appears to have been in '/home/emsuser/playbooks/editMechineAgentConf.yml': line 2, column 4, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Set element
^ here我不确定我在哪里做错了。请帮帮我。我是ansible的新手。
发布于 2019-03-22 05:35:23
https://stackoverflow.com/questions/55259720
复制相似问题