From 1ac286c4ddfa12523ac4a5b0ae8eb7a6a5005287 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Sat, 12 Dec 2015 13:48:44 +0100 Subject: [PATCH] Fix differences in init systems --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9eed15f..8d87722 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ sudo: required env: - - container_id=$(mktemp) distribution=centos version=7 - - container_id=$(mktemp) distribution=ubuntu version=14.04 + - container_id=$(mktemp) distribution=centos version=7 init=/usr/lib/systemd/systemd + - container_id=$(mktemp) distribution=ubuntu version=14.04 init=/sbin/init services: - docker @@ -19,7 +19,7 @@ script: # # Run container in detached state - - sudo docker run --detach ${distribution}:ansible /sbin/init > "${container_id}" + - sudo docker run --detach ${distribution}:ansible "${init}" > "${container_id}" # Syntax check - sudo docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/test.yml --syntax-check