Commit bc629617 by Hannah Chen

mongo client role

parent 07753c21
---
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
mongo_client_debian_pkgs:
- "mongodb-org-shell={{ mongo_version }}"
- "mongodb-org-tools={{ mongo_version }}"
---
- 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: "{{ mongo_client_debian_pkgs }}"
tags:
- install
- install:system-requirements
...@@ -78,12 +78,3 @@ jenkins_tools_debian_pkgs: ...@@ -78,12 +78,3 @@ jenkins_tools_debian_pkgs:
- psmisc - psmisc
- mysql-client-core-5.6 - mysql-client-core-5.6
- ruby-sass - 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 }}"
...@@ -15,3 +15,5 @@ dependencies: ...@@ -15,3 +15,5 @@ dependencies:
- role: docker-tools - role: docker-tools
docker_users: docker_users:
- '{{ jenkins_user }}' - '{{ jenkins_user }}'
- role: mongo_client
...@@ -19,32 +19,3 @@ ...@@ -19,32 +19,3 @@
tags: tags:
- install - install
- install:system-requirements - 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