File tree 7 files changed +28
-22
lines changed
7 files changed +28
-22
lines changed Original file line number Diff line number Diff line change 23
23
python-version : ' 3.x'
24
24
25
25
- name : Install test dependencies
26
- run : pip install ansible-lint[community,yamllint]
26
+ run : |
27
+ pip install ansible-lint
28
+ ansible-galaxy install -r requirements.yml
27
29
28
30
- name : Lint code
29
31
run : |
42
44
fail-fast : false
43
45
matrix :
44
46
include :
45
- - distro : ubuntu1604
46
- ansible-version : ' >=2.9, <2.10'
47
- molecule_version : " ==3.0.8"
48
47
- distro : ubuntu1604
49
48
ansible-version : ' >=2.10, <2.11'
50
- molecule_version : " ==3.2.4"
51
49
- distro : ubuntu1604
52
50
- distro : ubuntu1804
53
51
- distro : ubuntu2004
64
62
python-version : ' 3.x'
65
63
66
64
- name : Install test dependencies
67
- run : pip install 'ansible${{ matrix.ansible-version }}' ' molecule[docker]${{ matrix.molecule_version }}' docker
65
+ run : pip install 'ansible${{ matrix.ansible-version }}' molecule[docker] docker
68
66
69
67
- name : Run Molecule tests
70
68
run : |
Original file line number Diff line number Diff line change 1
- FROM ubuntu:16 .04
1
+ FROM ubuntu:18 .04
2
2
MAINTAINER Mischa ter Smitten <
[email protected] >
3
3
4
+ ENV LANG C.UTF-8
5
+ ENV LC_ALL C.UTF-8
6
+
4
7
# python
5
8
RUN apt-get update && \
6
- DEBIAN_FRONTEND=noninteractive apt-get install -y python -minimal python -dev curl && \
9
+ DEBIAN_FRONTEND=noninteractive apt-get install -y python3 -minimal python3 -dev curl && \
7
10
apt-get clean
8
- RUN curl -sL https://bootstrap.pypa.io/pip/2.7 /get-pip.py | python -
11
+ RUN curl -sL https://bootstrap.pypa.io/pip/3.6 /get-pip.py | python3 -
9
12
RUN rm -rf $HOME/.cache
10
13
11
14
# ansible
12
- RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc libffi-dev libssl-dev && \
15
+ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-apt && \
13
16
apt-get clean
14
- RUN pip install ansible==2.9.15
17
+ RUN pip3 install ansible==2.10.7
15
18
RUN rm -rf $HOME/.cache
16
19
17
20
# provision
Original file line number Diff line number Diff line change 1
1
# meta file
2
2
---
3
3
galaxy_info :
4
- namespace : oefenweb
4
+ author : oefenweb
5
5
role_name : haproxy
6
- author : Mischa ter Smitten
7
6
company : Oefenweb.nl B.V.
8
7
description : Set up the latest version of HAProxy in Ubuntu systems
9
8
license : MIT
10
- min_ansible_version : 2.9 .0
9
+ min_ansible_version : 2.10 .0
11
10
platforms :
12
11
- name : Ubuntu
13
12
versions :
Original file line number Diff line number Diff line change
1
+ ---
2
+ collections :
3
+ - name : community.docker
4
+ version : ' >=1.2.0,<2'
5
+ - name : community.general
6
+ version : ' >=2,<3'
Original file line number Diff line number Diff line change 9
9
- haproxy
10
10
- haproxy-check-version-support
11
11
12
- - import_tasks : install.yml
12
+ - ansible.builtin. import_tasks : install.yml
13
13
tags :
14
14
- configuration
15
15
- haproxy
16
16
- haproxy-install
17
17
18
- - import_tasks : certificates.yml
18
+ - ansible.builtin. import_tasks : certificates.yml
19
19
tags :
20
20
- configuration
21
21
- haproxy
22
22
- haproxy-certificates
23
23
24
- - import_tasks : acl.yml
24
+ - ansible.builtin. import_tasks : acl.yml
25
25
tags :
26
26
- configuration
27
27
- haproxy
28
28
- haproxy-acl
29
29
30
- - import_tasks : configuration.yml
30
+ - ansible.builtin. import_tasks : configuration.yml
31
31
tags :
32
32
- configuration
33
33
- haproxy
34
34
- haproxy-configuration
35
35
36
- - import_tasks : letsencrypt.yml
36
+ - ansible.builtin. import_tasks : letsencrypt.yml
37
37
tags :
38
38
- configuration
39
39
- haproxy
40
40
- haproxy-letsencrypt
41
41
42
42
- name : start and enable service
43
- ansible.builtin.service :
43
+ ansible.builtin.ansible.builtin. service :
44
44
name : haproxy
45
45
state : " {{ service_default_state | default('started') }}"
46
46
enabled : " {{ service_default_enabled | default(true) | bool }}"
Original file line number Diff line number Diff line change 5
5
become : true
6
6
pre_tasks :
7
7
- name : include vars
8
- include_vars : " {{ playbook_dir }}/vars/main.yml"
8
+ ansible.builtin. include_vars : " {{ playbook_dir }}/vars/main.yml"
9
9
roles :
10
10
- ../../
Original file line number Diff line number Diff line change 5
5
become : true
6
6
pre_tasks :
7
7
- name : include vars
8
- include_vars : " {{ playbook_dir }}/vars/main.yml"
8
+ ansible.builtin. include_vars : " {{ playbook_dir }}/vars/main.yml"
9
9
roles :
10
10
- ../../
You can’t perform that action at this time.
0 commit comments