Adding ansible_hostname var to privileges assigment tasks, and creating Percona toolkit UDF functions into the database server