Otherwise Ansible fails due to PyMySQL using a TCP connection. See: https://github.com/ansible/ansible/issues/47736
Set some sane defaults and manage the config file with a template.