Add Ubuntu 16.04

This commit is contained in:
Sergei Antipov 2018-02-17 22:42:32 +07:00
parent d2e59d8ff1
commit 9c9463f097
2 changed files with 20 additions and 1 deletions

View File

@ -8,6 +8,18 @@ python:
- "2.7"
- "3.6"
env:
- >
DISTRIBUTION=ubuntu
DIST_VERSION=16.04
MONGODB_VERSION=3.6
- >
DISTRIBUTION=ubuntu
DIST_VERSION=16.04
MONGODB_VERSION=3.4
- >
DISTRIBUTION=ubuntu
DIST_VERSION=16.04
MONGODB_VERSION=3.2
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=14.04

View File

@ -17,10 +17,17 @@
- mongo2
- mongo3
- hosts: "{{ target }}"
gather_facts: false
tasks:
- name: Install Python 2.x
raw: test -e /usr/bin/python || (apt update && apt install -y python-minimal) || true
register: test
changed_when: test.stdout
- hosts: "{{ target }}"
become: no
gather_facts: yes
roles:
- role: greendayonfire.mongodb
when: "'mongo_master' in group_names"