有一个表格,其中的值用XML填充
- name: "create-remote-dirs"
file:
path: /dest/dir/{{item.path}}
state: directory
mode: '0775'
with_filetree: sourceDir/
when: item.state == 'directory'
- name: "copy-files"
copy:
src: "{{item.src}}"
dest: /dest/dir/{{item.path}}
mode: '0744'
with_filetree: sourceDir/
# combinations of 'is' and 'is not' can be used below.
when: item.state == 'file'
and item.path is not search("excludedDir/*")
and item.path is not search("*.bak")
如何在表的所有行中仅更改inData和inScript的节点值(不影响outData,outScript)
用``小''取代所有``大''价值观
我知道我可以更新一个节点
您还需要保持节点的顺序