Commit 1ee83da1 by Hannah Chen Committed by GitHub

Merge pull request #4012 from edx/hchen/tools-jenkins-mongo

add mongo to system packages for tools-jenkins
parents 932f5f69 cc31a59d
---
MONGO_CLIENT_MONGODB_APT_KEY: "7F0CEB10"
MONGO_CLIENT_MONGODB_APT_KEYSERVER: "keyserver.ubuntu.com"
MONGO_CLIENT_MONGODB_REPO: "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse"
mongo_client_version: 3.2.12
mongo_client_debian_pkgs:
- "mongodb-org-shell={{ mongo_client_version }}"
- "mongodb-org-tools={{ mongo_client_version }}"
---
- name: add the mongodb signing key
apt_key:
id: "{{ MONGO_CLIENT_MONGODB_APT_KEY }}"
keyserver: "{{ MONGO_CLIENT_MONGODB_APT_KEYSERVER }}"
state: present
tags:
- install
- install:system-requirements
- name: add the mongodb repo to the sources list
apt_repository:
repo: "{{ MONGO_CLIENT_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: "{{ mongo_client_debian_pkgs }}"
tags:
- install
- install:system-requirements
......@@ -15,3 +15,5 @@ dependencies:
- role: docker-tools
docker_users:
- '{{ jenkins_user }}'
- role: mongo_client
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