将<level='info'> 等全部替换为<level='ERROR'>
- name: Before Ansible 2.3, option 'dest', 'destfile' or 'name' was used instead of 'path'
replace:
path: /appvol/testreplace.xml
regexp: "<level='.*'>"
replace: <level='ERROR'>
将<level='info'> 等全部替换为<level='ERROR'>
- name: Before Ansible 2.3, option 'dest', 'destfile' or 'name' was used instead of 'path'
replace:
path: /appvol/testreplace.xml
regexp: "<level='.*'>"
replace: <level='ERROR'>