mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
add setup_mongo.yml playbook
This commit is contained in:
parent
0f1e65b2e7
commit
fc7afe56b3
1 changed files with 26 additions and 0 deletions
26
ansible/setup_mongo.yml
Normal file
26
ansible/setup_mongo.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
- name: Set up mongo db container
|
||||
hosts: db-mongo
|
||||
remote_user: nb
|
||||
vars:
|
||||
- update_apt_cache: yes
|
||||
- motd_role: app
|
||||
vars_files:
|
||||
- env_vars/base.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- docker
|
||||
- repo
|
||||
tasks:
|
||||
- name: Start db-mongo docker container
|
||||
become: yes
|
||||
docker_container:
|
||||
name: db-mongo
|
||||
image: mongo:3.6
|
||||
state: started
|
||||
ports:
|
||||
- 27017:27017
|
||||
restart_policy: unless-stopped
|
||||
volumes:
|
||||
- /srv/newsblur/docker/volumes/db_mongo:/data/db
|
Loading…
Add table
Reference in a new issue