Use builded 16.04 image

This commit is contained in:
Sergei Antipov 2018-02-22 23:38:52 +07:00
parent 0e7dbda68d
commit f7cc7e901b
3 changed files with 10 additions and 12 deletions

View File

@ -6,19 +6,18 @@ sudo: required
language: python
python:
- "2.7"
- "3.6"
env:
- >
DISTRIBUTION=ubuntu
DIST_VERSION=16.04
DIST_VERSION=16_04-builded
MONGODB_VERSION=3.6
- >
DISTRIBUTION=ubuntu
DIST_VERSION=16.04
DIST_VERSION=16_04-builded
MONGODB_VERSION=3.4
- >
DISTRIBUTION=ubuntu
DIST_VERSION=16.04
DIST_VERSION=16_04-builded
MONGODB_VERSION=3.2
- >
DISTRIBUTION=ubuntu-upstart

View File

@ -0,0 +1,7 @@
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install --yes python-minimal && \
rm /lib/systemd/system/getty@.service

View File

@ -17,14 +17,6 @@
- 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