-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
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
Setting an empty value fails with MODULE FAILURE #63
Comments
Hmm… was this maybe fixed with #60? |
This is still broken :-( |
The xml module is upstream now (and ships with Ansible v2.4). Please close this issue, and retest against the new upstream xml module. If needed, open a new issue at: https://github.com/ansible/ansible/issues |
This is fixed in the version which is shipped with Ansible v2.4. Tested with the XML file from the initial report and following playbook: ---
- hosts: all
tasks:
- name: Set localconfig options
xml:
file: "/tmp/localconfig.xml"
xpath: "/localconfig/key[@name='smtp_notify']/value"
value: "" |
Thanks for reporting back ! |
This might be the same issue as #53 and maybe #7.
The XML:
This task works to set the value above:
But this fails:
Expected result:
Actual result:
This is version 0.3.1 if I'm not mistaken (whatever was current on galaxy today).
The text was updated successfully, but these errors were encountered: