- name: create database mysql_db: name: "{{database_databasename}}" state: present login_user: root login_password: "{{central_mariadb_root_password}}" login_host: 127.0.0.1 login_port: 3306 listen: create database - name: create database user mysql_user: name: "{{database_username}}" password: "{{database_password}}" priv: '{{database_databasename}}.*:ALL' state: present login_user: root login_password: "{{central_mariadb_root_password}}" login_host: 127.0.0.1 login_port: 3306 listen: create database