Commit 07753c21 by Hannah Chen

add mongo to system packages for tools-jenkins

parent 932f5f69
......@@ -78,3 +78,12 @@ jenkins_tools_debian_pkgs:
- psmisc
- mysql-client-core-5.6
- ruby-sass
MONGODB_APT_KEY: "7F0CEB10"
MONGODB_APT_KEYSERVER: "keyserver.ubuntu.com"
MONGODB_REPO: "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse"
mongo_version: 3.2.12
mongodb_debian_pkgs:
- "mongodb-org-shell={{ mongo_version }}"
- "mongodb-org-tools={{ mongo_version }}"
......@@ -19,3 +19,32 @@
tags:
- install
- install:system-requirements
- name: add the mongodb signing key
apt_key:
id: "{{ MONGODB_APT_KEY }}"
keyserver: "{{ MONGODB_APT_KEYSERVER }}"
state: present
tags:
- install
- install:system-requirements
- name: add the mongodb repo to the sources list
apt_repository:
repo: "{{ MONGODB_REPO }}"
state: present
tags:
- install
- install:system-requirements
- name: install mongo shell
apt:
pkg: "{{ item }}"
state: present
install_recommends: yes
force: yes
update_cache: yes
with_items: "{{ mongodb_debian_pkgs }}"
tags:
- install
- install:system-requirements
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment