--- - name: "Install dependencies" ansible.builtin.apt: name: "mariadb-server" update_cache: true cache_valid_time: 86400 - name: "Create database" mysql_db: name: "{{ db_name }}" - name: "Create user" mysql_user: name: "{{ db_user }}" password: "{{ db_password }}" priv: "{{ db_name }}.*:ALL"