VictoriaMetrics / ansible-playbooks

Ansible Playbooks for Victoria Metrics monorepo
Apache License 2.0
103 stars 34 forks source link

fix problem with multi-line ansible_managed variable #56

Closed olegbuevich closed 8 months ago

olegbuevich commented 8 months ago

Ansible config example:

[defaults]
ansible_managed = !!!!!!!!!!!!!!!
    This file was generated by Ansible
    Do NOT modify this file by hand!
    !!!!!!!!!!!!!!!

/opt/vic-vmagent/config.yml before patch:

#!!!!!!!!!!!!!!!
This file was generated by Ansible
Do NOT modify this file by hand!
!!!!!!!!!!!!!!!
...

/opt/vic-vmagent/config.yml after patch:

#
# !!!!!!!!!!!!!!!
# This file was generated by Ansible
# Do NOT modify this file by hand!
# !!!!!!!!!!!!!!!
#
...