ansibleでreplaceの使用例の'\1'と'\2'はどういう意味でしょうか?
ansible公式サイトのreplaceモジュールの使用例の、
replaceキーの\1や\2は、どういう意味でしょうか?
使用例
# Before 2.3, option 'dest', 'destfile' or 'name' was used instead of 'path'
- replace:
path: /etc/hosts
regexp: '(\s+)old\.host\.name(\s+.*)?$'
replace: '\1new.host.name\2'
backup: yes
公式サイトの使用例
http://docs.ansible.com/ansible/latest/replace_module.html#examples