File tree Expand file tree Collapse file tree 3 files changed +44
-9
lines changed Expand file tree Collapse file tree 3 files changed +44
-9
lines changed Original file line number Diff line number Diff line change 6
6
# https://github.com/travis-ci/travis-ci/issues/6461#issuecomment-239577306
7
7
DOCKER_VERSION : " 1.9.1-0~trusty"
8
8
matrix :
9
- - distro : centos6
10
- init : /sbin/init
11
- run_opts : " "
12
- playbook : test.yml
13
9
- distro : centos7
14
10
init : /usr/lib/systemd/systemd
15
11
run_opts : " --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
16
12
playbook : centos-7-test.yml
13
+ - distro : centos6
14
+ init : /sbin/init
15
+ run_opts : " "
16
+ playbook : test.yml
17
17
- distro : ubuntu1604
18
18
init : /lib/systemd/systemd
19
19
run_opts : " --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
22
22
init : /sbin/init
23
23
run_opts : " "
24
24
playbook : test.yml
25
- # - distro: ubuntu1204
26
- # version: latest
27
- # init: /sbin/init
28
- # run_opts: ""
29
- # playbook: test.yml
25
+ - distro : ubuntu1204
26
+ init : /sbin/init
27
+ run_opts : " "
28
+ playbook : test.yml
30
29
31
30
services :
32
31
- docker
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ ALIAS_CMD=" $( echo " " $0 " " | sed -e ' s?/sbin/??' ) "
3
+
4
+ case " $ALIAS_CMD " in
5
+ start|stop|restart|reload|status)
6
+ exec service $1 $ALIAS_CMD
7
+ ;;
8
+ esac
9
+
10
+ case " $1 " in
11
+ list )
12
+ exec service --status-all
13
+ ;;
14
+ reload-configuration )
15
+ exec service $2 restart
16
+ ;;
17
+ start|stop|restart|reload|status)
18
+ exec service $2 $1
19
+ ;;
20
+ \? )
21
+ exit 0
22
+ ;;
23
+ esac
Original file line number Diff line number Diff line change 1
1
---
2
2
- hosts : all
3
+
4
+ pre_tasks :
5
+ # Override initctl on Ubuntu 14.04.
6
+ - block :
7
+ - name : Remove existing initctl.
8
+ file : path=/sbin/initctl state=absent
9
+ - name : Copy initctl_faker into place for Ubuntu 14.04.
10
+ copy :
11
+ src : initctl_faker
12
+ dest : /sbin/initctl
13
+ mode : 0755
14
+ when : ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
15
+
3
16
roles :
4
17
- role_under_test
You can’t perform that action at this time.
0 commit comments