Skip to content

Commit 165ecf3

Browse files
authored
Merge pull request #3 from Oefenweb/consistency-changes
Consistency changes
2 parents 3dbaf14 + 14d5ddb commit 165ecf3

File tree

9 files changed

+28
-27
lines changed

9 files changed

+28
-27
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
python-version: '3.x'
2424

2525
- 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
2729
2830
- name: Lint code
2931
run: |
@@ -42,12 +44,8 @@ jobs:
4244
fail-fast: false
4345
matrix:
4446
include:
45-
- distro: debian8
46-
ansible-version: '<2.10'
4747
- distro: debian9
4848
- distro: debian10
49-
- distro: ubuntu1604
50-
ansible-version: '>=2.9, <2.10'
5149
- distro: ubuntu1604
5250
ansible-version: '>=2.10, <2.11'
5351
- distro: ubuntu1604

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
MAINTAINER Mischa ter Smitten <mtersmitten@oefenweb.nl>
33

4+
ENV LANG C.UTF-8
5+
ENV LC_ALL C.UTF-8
6+
47
# python
58
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 && \
710
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 -
912
RUN rm -rf $HOME/.cache
1013

1114
# 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 && \
1316
apt-get clean
14-
RUN pip install ansible==2.9.15
17+
RUN pip3 install ansible==2.10.7
1518
RUN rm -rf $HOME/.cache
1619

1720
# provision

Vagrantfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ boxes = [
2525
:cpu => "50",
2626
:ram => "384"
2727
},
28-
{
29-
:name => "debian-8",
30-
:box => "bento/debian-8",
31-
:ip => '10.0.0.16',
32-
:cpu => "50",
33-
:ram => "256"
34-
},
3528
{
3629
:name => "debian-9",
3730
:box => "bento/debian-9",

meta/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# meta file
22
---
33
galaxy_info:
4-
namespace: oefenweb
4+
author: oefenweb
55
role_name: chrome
6-
author: Mischa ter Smitten
76
company: Oefenweb.nl B.V.
87
description: Set up Google Chrome in Debian-like systems
98
license: BSD
10-
min_ansible_version: 2.9.0
9+
min_ansible_version: 2.10.0
1110
platforms:
1211
- name: Ubuntu
1312
versions:
@@ -16,7 +15,6 @@ galaxy_info:
1615
- focal
1716
- name: Debian
1817
versions:
19-
- jessie
2018
- stretch
2119
- buster
2220
galaxy_tags:

molecule/default/collections.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
collections:
3+
- name: community.docker
4+
version: '>=1.2.0,<2'
5+
- name: community.general
6+
version: '>=2,<3'

requirements.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# requirements file
2+
---
3+
collections: []

tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# tasks file
22
---
33
- name: install | dependencies
4-
apt:
4+
ansible.builtin.apt:
55
name: "{{ chrome_dependencies }}"
66
state: "{{ apt_install_state | default('latest') }}"
77
update_cache: true

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# tasks file
22
---
3-
- include: repository.yml
3+
- ansible.builtin.include: repository.yml
44
tags:
55
- configuration
66
- chrome
77
- chrome-repository
88

9-
- include: install.yml
9+
- ansible.builtin.include: install.yml
1010
tags:
1111
- configuration
1212
- chrome

tasks/repository.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# tasks file
22
---
33
- name: repository | dependencies
4-
apt:
4+
ansible.builtin.apt:
55
name: "{{ chrome_dependencies_pre }}"
66
state: "{{ apt_install_state | default('latest') }}"
77
update_cache: true
@@ -10,15 +10,15 @@
1010
- chrome-repository-dependencies
1111

1212
- name: repository | add public key
13-
apt_key:
13+
ansible.builtin.apt_key:
1414
id: A040830F7FAC5991
1515
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
1616
state: present
1717
tags:
1818
- chrome-repository-public-key
1919

2020
- name: repository | add chrome repository
21-
apt_repository:
21+
ansible.builtin.apt_repository:
2222
repo: "{{ item.type }} {{ item.url }} {{ item.component }}"
2323
state: present
2424
update_cache: true

0 commit comments

Comments
 (0)