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