From cb466cc23049bfd1f2ebee721e5f1c6841ade9e0 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Mon, 21 Nov 2016 17:24:23 +0800 Subject: 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 --- opt/servers/roles/mongo/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 opt/servers/roles/mongo/tasks/main.yml (limited to 'opt/servers/roles') 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 -- cgit 1.2.3-korg