diff --git a/ansible/roles/mongo/tasks/main.yml b/ansible/roles/mongo/tasks/main.yml index 5c30cfdde..d65cd2103 100644 --- a/ansible/roles/mongo/tasks/main.yml +++ b/ansible/roles/mongo/tasks/main.yml @@ -12,6 +12,7 @@ volumes: - /mnt/{{ inventory_hostname | regex_replace('db-|-', '') }}:/data/db - /srv/newsblur/ansible/roles/mongo/templates/mongo.conf:/etc/mongod.conf + - /var/log/mongodb/:/var/log/mongodb/ - name: Register mongo in consul tags: consul diff --git a/ansible/roles/mongo/templates/mongo.conf b/ansible/roles/mongo/templates/mongo.conf index 37ce77d83..2f40b5bff 100644 --- a/ansible/roles/mongo/templates/mongo.conf +++ b/ansible/roles/mongo/templates/mongo.conf @@ -13,10 +13,10 @@ storage: # wiredTiger: # where to write logging data. -# systemLog: -# destination: file -# logAppend: true -# path: /var/log/mongodb/mongod.log +systemLog: + destination: file + logAppend: true + path: /var/log/mongodb/mongod.log # network interfaces net: