diff --git a/tasks/auth_initialization.yml b/tasks/auth_initialization.yml index a787026..8be31ae 100644 --- a/tasks/auth_initialization.yml +++ b/tasks/auth_initialization.yml @@ -26,6 +26,8 @@ password: "{{ item.password }}" roles: "{{ item.roles }}" login_host: 127.0.0.1 + login_user: "{{ mongodb_user_admin_name }}" + login_password: "{{ mongodb_user_admin_password }}" with_items: - { name: "{{ mongodb_root_admin_name }}",