summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/mongodb/roles/mongodb_auth/defaults/main.yml
blob: 59049bde213acc9d66ebd68b0c56bfe34a9775b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# defaults file for mongodb_auth
mongod_port: 27017
mongod_package: "mongodb-org-server"

authorization: "enabled"

# when adding auth, the login credentials to use
mongodb_admin_user: admin
# For production use - please change the admin password!
mongodb_admin_pwd: "{{ mongodb_default_admin_pwd }}"
# The default is separate so other roles can provide a default without overriding a user provided password.
mongodb_default_admin_pwd: admin
# allow for alternate admin roles (e.g. userAdminAnyDatabase)
mongodb_admin_roles: "root"

# Additional users to add.
mongodb_users: []
#  - db: somedatabase
#    user: someuser
#    pwd: "S0meP@ss"
#    state: present    # can be omitted
#    roles: readWrite  # if omitted "readWrite" will be used

# whether to force a password update for any users in mongodb_users
# Setting this to yes will result in 'changed' on every run, even if the password is the same.
# See the comment in tasks/main.yml for more details.
mongodb_force_update_password: no

mongodb_use_tls: false