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:
Daniel White 2016-04-27 14:51:53 +10:00
parent b74bade421
commit 589222f25e
2 changed files with 2 additions and 2 deletions

View File

@ -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_manage_service: true
mongodb_user: mongodb
mongodb_user: "{{ 'mongod' if ('RedHat' == ansible_os_family) else 'mongodb' }}"
mongodb_uid:
mongodb_gid:
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"

View File

@ -10,7 +10,7 @@ mongodb_force_wait_for_port: false
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
mongodb_manage_service: true
mongodb_user: mongodb
mongodb_user: "{{ 'mongod' if ('RedHat' == ansible_os_family) else 'mongodb' }}"
mongodb_uid:
mongodb_gid:
mongodb_daemon_name: "{{ 'mongod' if ('mongodb-org' in mongodb_package) else 'mongodb' }}"