--- - name: Create databases mongodb_user: login_user: "{{ mongodb_user_admin_name }}" login_password: "{{ mongodb_user_admin_password }}" database: unifi name: unifiadm password: password roles: readWrite state: present