File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 15
15
- distribution : centos
16
16
version : 6
17
17
playbook : template
18
+ - distribution : centos
19
+ version : 6
20
+ playbook : unit
18
21
- distribution : centos
19
22
version : 7
20
23
playbook : basic
27
30
- distribution : centos
28
31
version : 7
29
32
playbook : push
33
+ - distribution : centos
34
+ version : 7
35
+ playbook : unit
30
36
- distribution : debian
31
37
version : jessie
32
38
playbook : basic
39
45
- distribution : debian
40
46
version : jessie
41
47
playbook : push
48
+ - distribution : debian
49
+ version : jessie
50
+ playbook : unit
42
51
- distribution : debian
43
52
version : stretch
44
53
playbook : basic
51
60
- distribution : debian
52
61
version : stretch
53
62
playbook : push
63
+ - distribution : debian
64
+ version : stretch
65
+ playbook : unit
54
66
- distribution : ubuntu
55
67
version : trusty
56
68
playbook : basic
75
87
- distribution : ubuntu
76
88
version : xenial
77
89
playbook : push
90
+ - distribution : ubuntu
91
+ version : xenial
92
+ playbook : unit
78
93
before_install :
79
94
- ' sudo docker pull ${distribution}:${version}'
80
95
- ' sudo docker build --no-cache --rm --file=tests/dockerfiles/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests'
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:bionic
2
+
3
+ RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y software-properties-common && rm -rf /var/lib/apt/lists/*
4
+
5
+ RUN apt-add-repository -y ppa:ansible/ansible && apt-get update && apt-get install -y \
6
+ git \
7
+ ansible \
8
+ apt-transport-https \
9
+ curl \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
13
+
14
+ ENTRYPOINT ["/sbin/init"]
Original file line number Diff line number Diff line change
1
+ ---
2
+ - hosts : localhost
3
+ become : true
4
+ remote_user : root
5
+ roles :
6
+ - ansible-role-nginx
7
+ vars :
8
+ unit_enable : true
9
+ unit_packages : true
You can’t perform that action at this time.
0 commit comments