2017-08-09 03:21:03 +00:00
|
|
|
---
|
|
|
|
- name: Setup test fixture
|
|
|
|
copy:
|
2017-08-25 00:07:58 +00:00
|
|
|
src: fixtures/ansible-xml-beers.xml
|
2017-08-09 03:21:03 +00:00
|
|
|
dest: /tmp/ansible-xml-beers.xml
|
|
|
|
|
2017-08-25 00:07:58 +00:00
|
|
|
|
2017-08-09 03:21:03 +00:00
|
|
|
- name: Specify both children to add and a value
|
|
|
|
xml:
|
|
|
|
path: /tmp/ansible-xml-beers.xml
|
|
|
|
add_children:
|
2017-08-25 00:07:58 +00:00
|
|
|
- child01
|
|
|
|
- child02
|
2017-08-09 03:21:03 +00:00
|
|
|
value: conflict!
|
|
|
|
register: module_output
|
2017-08-25 00:07:58 +00:00
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- name: Test expected result
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- module_output.changed == false
|
|
|
|
- module_output.failed == true
|