Cleaning up mongo

This commit is contained in:
Samuel Clay 2021-05-10 19:11:24 -04:00
parent ac63b83a82
commit 4d87b88022
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,11 @@
---
- name: Permissions for mongo
become: yes
file:
state: directory
mode: 0777
path: /var/log/mongodb
- name: Start db-mongo docker container
become: yes
docker_container:
@ -8,7 +15,7 @@
container_default_behavior: no_defaults
restart_policy: unless-stopped
network_mode: host
command: mongod --config /etc/mongod.conf
command: --config /etc/mongod.conf
volumes:
- /mnt/{{ inventory_hostname | regex_replace('db-|-', '') }}:/data/db
- /srv/newsblur/ansible/roles/mongo/templates/mongo.conf:/etc/mongod.conf

View file

@ -21,7 +21,6 @@ systemLog:
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
bindIpAll: true
# how the process runs