1. Я пытаюсь обновить xml значения элементов в тесте. xml файл с использованием скрипта ansible с помощью win_ xml, моя ansible книга воспроизведения выглядит следующим образом:
---
- hosts: windows
gather_facts: no
tasks:
- name: Updating xml file
win_xml:
path: 'C:\test.xml'
xpath: '/properties/entry'
fragment: 'test'
attribute: 'key="test"'
type: text
2. Запустите playbook, используя следующую команду:
ansible-playbook -i ../hosts win-playbook.yml -vvv
3.Эта команда завершилась ошибкой с ошибкой ниже:
The full traceback is:
The property 'SchemaInfo' cannot be found on this object. Verify that the property exists.
At line:118 char:1
+ $namespaceMgr.AddNamespace($xmlorig.$localname.SchemaInfo.Prefix, $na ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
ScriptStackTrace:
at <ScriptBlock>, <No file>: line 118
fatal: [windows]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: The property 'SchemaInfo' cannot be found on this object. Verify that the property exists."
}