ansible 文本多行替换实例

将<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'>

猜你喜欢

转载自www.cnblogs.com/lihuanhuan/p/11349269.html