Thanx.
I have found an other way. The my.cnf comes from me. As a template.
I put a field with the server id into my server variables, and refer it in
the template.
Server:
default_ip: 127.0.0.1
ansible_ssh_host: 127.0.0.1
mysql_db_id : 7
and in my template i say:
server-id = {{ mysql_db_id }}
thats solve this problem for me.
And yes, the regex part was horrible and wrong, but this because i dont
unterstand regex. For me this concept i like dealing with hell. ;-)
greetings
Henrik
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/96b30420-c3be-494f-b778-694800829e0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.