Provide better default user for a RedHat based OS
While we could define this in the per-platform variables, including this in the defaults maintains backwards compatability for users that want to override this value.
This commit is contained in:
parent
b74bade421
commit
589222f25e
|
@ -41,7 +41,7 @@ mongodb_pymongo_from_pip: true # Install latest PyMongo via PI
|
||||||
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
|
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
|
||||||
mongodb_manage_service: true
|
mongodb_manage_service: true
|
||||||
|
|
||||||
mongodb_user: mongodb
|
mongodb_user: "{{ 'mongod' if ('RedHat' == ansible_os_family) else 'mongodb' }}"
|
||||||
mongodb_uid:
|
mongodb_uid:
|
||||||
mongodb_gid:
|
mongodb_gid:
|
||||||
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"
|
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"
|
||||||
|
|
|
@ -10,7 +10,7 @@ mongodb_force_wait_for_port: false
|
||||||
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
|
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
|
||||||
mongodb_manage_service: true
|
mongodb_manage_service: true
|
||||||
|
|
||||||
mongodb_user: mongodb
|
mongodb_user: "{{ 'mongod' if ('RedHat' == ansible_os_family) else 'mongodb' }}"
|
||||||
mongodb_uid:
|
mongodb_uid:
|
||||||
mongodb_gid:
|
mongodb_gid:
|
||||||
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"
|
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"
|
||||||
|
|
Loading…
Reference in New Issue