mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Mongo analytics needs correct user.
This commit is contained in:
parent
4a81611b01
commit
dd62491fd7
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: SETUP -> mongo containers
|
||||
hosts: mongo
|
||||
hosts: mongo, mongo_analytics
|
||||
vars:
|
||||
- update_apt_cache: yes
|
||||
- motd_role: db
|
||||
|
|
|
@ -32,11 +32,10 @@
|
|||
state: mounted
|
||||
|
||||
- name: Copy MongoDB keyfile
|
||||
become: yes
|
||||
copy:
|
||||
content: "{{ mongodb_keyfile }}"
|
||||
dest: /srv/newsblur/config/mongodb_keyfile.key
|
||||
owner: root
|
||||
owner: nb
|
||||
mode: 0400
|
||||
tags:
|
||||
- keyfile
|
||||
|
@ -100,6 +99,7 @@
|
|||
ports:
|
||||
- "27017:27017"
|
||||
command: --config /etc/mongod.conf
|
||||
user: nb:nb
|
||||
volumes:
|
||||
- /mnt/{{ inventory_hostname | regex_replace('db-|-', '') }}:/data/db
|
||||
- /srv/newsblur/ansible/roles/mongo/templates/mongo.analytics.conf:/etc/mongod.conf
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
- import_playbook: playbooks/setup_postgres.yml
|
||||
when: "'postgres' in group_names"
|
||||
- import_playbook: playbooks/setup_mongo.yml
|
||||
when: "'mongo' in group_names"
|
||||
when: "'mongo' in group_names or 'mongo_analytics' in group_names"
|
||||
- import_playbook: playbooks/setup_redis.yml
|
||||
when: "'redis' in group_names"
|
||||
- import_playbook: playbooks/setup_elasticsearch.yml
|
||||
|
|
Loading…
Add table
Reference in a new issue