mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +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
|
||||
- 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
|
||||
- mongo
|
Loading…
Add table
Reference in a new issue