summaryrefslogtreecommitdiffstats
path: root/opt/servers/roles
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-21 17:24:23 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-21 17:24:23 +0800
commitcb466cc23049bfd1f2ebee721e5f1c6841ade9e0 (patch)
tree2a9e1f2bccc97963f5b2db33a7a890e5ebe27b9d /opt/servers/roles
parent0a324e03a0d39bb205c43b6544740d2d9d9d9144 (diff)
deploy mongodb to qtip dashboard server
add ansible code to deploy mongodb in qtip dashboard server JIRA: QTIP-166 Change-Id: Icce4ac10b00ecf7679ff89204cb8a95cd1919151 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'opt/servers/roles')
-rw-r--r--opt/servers/roles/mongo/tasks/main.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/opt/servers/roles/mongo/tasks/main.yml b/opt/servers/roles/mongo/tasks/main.yml
new file mode 100644
index 00000000..81fb49b5
--- /dev/null
+++ b/opt/servers/roles/mongo/tasks/main.yml
@@ -0,0 +1,10 @@
+---
+- name: pulling mongo
+ become: true
+ docker_image: name=mongo:3.2.1 state=present
+
+- name: setting up mongo
+ become: true
+ docker_container:
+ name: mongo
+ image: mongo:3.2.1