File tree Expand file tree Collapse file tree 8 files changed +31
-19
lines changed Expand file tree Collapse file tree 8 files changed +31
-19
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 : |
43
45
matrix :
44
46
include :
45
47
- distro : debian8
46
- ansible-version : ' <2.10'
47
48
- distro : debian9
48
49
- distro : debian10
49
- - distro : ubuntu1604
50
- ansible-version : ' >=2.9, <2.10'
51
50
- distro : ubuntu1604
52
51
ansible-version : ' >=2.10, <2.11'
53
52
- distro : ubuntu1604
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 : insync
6
- author : Mischa ter Smitten
7
6
company : Oefenweb.nl B.V.
8
7
description : Set up Insync in Debian-like 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
1
+ # requirements file
2
+ ---
3
+ collections : []
Original file line number Diff line number Diff line change 1
1
# tasks file
2
2
---
3
3
- name : ensure update-notifier directory
4
- file :
4
+ ansible.builtin. file :
5
5
path : /var/lib/update-notifier/user.d
6
6
state : directory
7
7
recurse : true
12
12
- insync-install-dependencies
13
13
14
14
- name : install | dependencies
15
- apt :
15
+ ansible.builtin. apt :
16
16
name : " {{ insync_dependencies }}"
17
17
state : " {{ apt_install_state | default('latest') }}"
18
18
tags :
Original file line number Diff line number Diff line change 1
1
# tasks file
2
2
---
3
- - include : repository.yml
3
+ - name : repository
4
+ ansible.builtin.import_tasks : repository.yml
4
5
tags :
5
6
- configuration
6
7
- insync
7
8
- insync-repository
8
9
9
- - include : install.yml
10
+ - name : install
11
+ ansible.builtin.import_tasks : install.yml
10
12
tags :
11
13
- configuration
12
14
- insync
Original file line number Diff line number Diff line change 1
1
# tasks file
2
2
---
3
3
- name : repository | dependencies
4
- apt :
4
+ ansible.builtin. apt :
5
5
name : " {{ insync_dependencies_pre }}"
6
6
state : " {{ apt_install_state | default('latest') }}"
7
7
update_cache : true
10
10
- insync-repository-dependencies
11
11
12
12
- name : repository | add public key
13
- apt_key :
13
+ ansible.builtin. apt_key :
14
14
id : A684470CACCAF35C
15
15
keyserver : keyserver.ubuntu.com
16
16
state : present
17
17
tags :
18
18
- insync-repository-public-key
19
19
20
20
- name : repository | add
21
- apt_repository :
21
+ ansible.builtin. apt_repository :
22
22
repo : " {{ item.type }} {{ item.url }} {{ item.component }}"
23
23
state : present
24
24
update_cache : true
You can’t perform that action at this time.
0 commit comments