mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-11 00:24:22 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- name: Setup test fixture
|
||||
copy:
|
||||
src: fixtures/ansible-xml-beers.xml
|
||||
dest: /tmp/ansible-xml-beers.xml
|
||||
|
||||
|
||||
- name: Specify both children to add and a value
|
||||
xml:
|
||||
path: /tmp/ansible-xml-beers.xml
|
||||
add_children:
|
||||
- child01
|
||||
- child02
|
||||
value: conflict!
|
||||
register: module_output
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Test expected result
|
||||
assert:
|
||||
that:
|
||||
- module_output.changed == false
|
||||
- module_output.failed == true
|
Loading…
Add table
Add a link
Reference in a new issue