mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
move mongo tasks into mongo role
This commit is contained in:
parent
90ec01741b
commit
82cc1305a2
2 changed files with 13 additions and 12 deletions
12
ansible/roles/mongo/tasks/main.yml
Normal file
12
ansible/roles/mongo/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
- 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
|
|
@ -12,15 +12,4 @@
|
||||||
- base
|
- base
|
||||||
- docker
|
- docker
|
||||||
- repo
|
- repo
|
||||||
tasks:
|
- mongo
|
||||||
- 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