move mongo tasks into mongo role

This commit is contained in:
Jonathan Math 2021-02-03 10:39:11 -05:00
parent 90ec01741b
commit 82cc1305a2
2 changed files with 13 additions and 12 deletions

View 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

View file

@ -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