We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win_xml module outputs warnings with information about xml notes end elements in document. Looks like someone use Add-Warning for module debug.
Azure DevOps Task for ansible-playbook marks any task with warnings as failed, so it`s very upsetting thing.
win_xml
ansible 2.9.9 config file = None configured module search path = ['/home/ivmalin1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.6/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.6.8 (default, Nov 27 2019, 14:21:59) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39.0.1)]
default, only in config file
Windows Server 2012R2, Windows Server 2016
use win_xml to modify any correct xml file
- name: Enable service in keepalive config win_xml: path: "C:\\Test\\Ports.xml" xpath: '/Configuration/Ports/Port[@number="{{ item }}"]' attribute: normalState fragment: "true" type: attribute loop: "{{ endpoints }}" when: endpoints is defined
No warnings in ansible-playbook output.
Output with warnings like:
[WARNING]: node: element: ...
and
[WARNING]: element is ...
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
SUMMARY
Win_xml module outputs warnings with information about xml notes end elements in document.
Looks like someone use Add-Warning for module debug.
Azure DevOps Task for ansible-playbook marks any task with warnings as failed, so it`s very upsetting thing.
ISSUE TYPE
COMPONENT NAME
win_xml
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows Server 2012R2, Windows Server 2016
STEPS TO REPRODUCE
use win_xml to modify any correct xml file
EXPECTED RESULTS
No warnings in ansible-playbook output.
ACTUAL RESULTS
Output with warnings like:
and
The text was updated successfully, but these errors were encountered: