Skip to content

Commit 294c278

Browse files
authored
Merge pull request #14 from Oefenweb/consistency-changes
Consistency changes
2 parents 88c7a29 + ce02e06 commit 294c278

11 files changed

Lines changed: 42 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Check out the codebase
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v5
1919

2020
- name: Set up Python 3
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.x'
23+
python-version: '3 - 3.13'
2424

2525
- name: Install test dependencies
2626
run: |
@@ -44,28 +44,29 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
include:
47-
- distro: debian10
4847
- distro: debian11
4948
- distro: debian12
50-
- distro: ubuntu1604
51-
ansible-version: '>=2.10, <2.11'
52-
- distro: ubuntu1604
5349
- distro: ubuntu1804
50+
ansible-version: '>=9, <10'
5451
- distro: ubuntu2004
52+
ansible-version: '>=12, <13'
53+
- distro: ubuntu2204
54+
- distro: ubuntu2404
5555

5656
steps:
5757
- name: Check out the codebase
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v5
5959
with:
6060
path: "${{ github.repository }}"
6161

6262
- name: Set up Python 3
63-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v6
6464
with:
65-
python-version: '3.x'
65+
python-version: '3 - 3.13'
6666

6767
- name: Install test dependencies
68-
run: pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
68+
run: |
69+
pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
6970
7071
- name: Run Molecule tests
7172
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out the codebase
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v5
1616

1717
- name: Publish to Galaxy
1818
uses: robertdebock/galaxy-action@1.2.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN rm -rf $HOME/.cache
1414
# ansible
1515
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-apt && \
1616
apt-get clean
17-
RUN pip3 install ansible==2.10.7
17+
RUN pip3 install ansible==4.10.0
1818
RUN rm -rf $HOME/.cache
1919

2020
# provision

Vagrantfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
role = File.basename(File.expand_path(File.dirname(__FILE__)))
55

66
boxes = [
7-
{
8-
:name => "ubuntu-1604",
9-
:box => "bento/ubuntu-16.04",
10-
:ip => '10.0.0.12',
11-
:cpu => "50",
12-
:ram => "256"
13-
},
147
{
158
:name => "ubuntu-1804",
169
:box => "bento/ubuntu-18.04",
@@ -23,14 +16,21 @@ boxes = [
2316
:box => "bento/ubuntu-20.04",
2417
:ip => '10.0.0.14',
2518
:cpu => "50",
26-
:ram => "384"
19+
:ram => "512"
2720
},
2821
{
29-
:name => "debian-10",
30-
:box => "bento/debian-10",
31-
:ip => '10.0.0.18',
22+
:name => "ubuntu-2204",
23+
:box => "bento/ubuntu-22.04",
24+
:ip => '10.0.0.15',
3225
:cpu => "50",
33-
:ram => "256"
26+
:ram => "512"
27+
},
28+
{
29+
:name => "ubuntu-2404",
30+
:box => "bento/ubuntu-24.04",
31+
:ip => '10.0.0.16',
32+
:cpu => "50",
33+
:ram => "512"
3434
},
3535
{
3636
:name => "debian-11",
@@ -44,7 +44,7 @@ boxes = [
4444
:box => "bento/debian-12",
4545
:ip => '10.0.0.20',
4646
:cpu => "50",
47-
:ram => "256"
47+
:ram => "384"
4848
},
4949
]
5050

meta/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ galaxy_info:
1010
platforms:
1111
- name: Ubuntu
1212
versions:
13-
- xenial
1413
- bionic
1514
- focal
15+
- jammy
16+
- noble
1617
- name: Debian
1718
versions:
18-
- buster
1919
- bullseye
2020
- bookworm
2121
galaxy_tags:

molecule/default/collections.yml

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

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ driver:
55
name: docker
66
platforms:
77
- name: instance
8-
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604}-ansible:latest"
8+
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest"
99
command: ${MOLECULE_DOCKER_COMMAND:-""}
1010
volumes:
1111
- /sys/fs/cgroup:/sys/fs/cgroup:rw

tasks/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
state: directory
1414
recurse: true
1515
when:
16-
- ansible_distribution == 'Ubuntu'
17-
- ansible_distribution_major_version is version('18', '>=')
16+
- ansible_facts['distribution'] == 'Ubuntu'
17+
- ansible_facts['distribution_major_version'] is version('18', '>=')
1818

1919
- name: install dependencies
2020
ansible.builtin.apt:
@@ -41,10 +41,10 @@
4141
dest: "{{ collectd_etc_default_file }}"
4242
owner: root
4343
group: root
44-
mode: 0644
44+
mode: '0644'
4545
when:
46-
- ansible_distribution == 'Ubuntu'
47-
- ansible_distribution_major_version is version('20', '==')
46+
- ansible_facts['distribution'] == 'Ubuntu'
47+
- ansible_facts['distribution_major_version'] is version('20', '==')
4848
notify: restart collectd
4949
tags:
5050
- configuration
@@ -55,7 +55,7 @@
5555
ansible.builtin.template:
5656
src: "etc/collectd/collectd.conf.d/{{ item }}.conf.j2"
5757
dest: "/etc/collectd/collectd.conf.d/{{ item }}.conf"
58-
mode: 0644
58+
mode: '0644'
5959
with_items: "{{ collectd_plugins_present }}"
6060
notify: restart collectd
6161
tags:

templates/etc/collectd/collectd.conf.d/df.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LoadPlugin df
1919
FSType mqueue
2020
IgnoreSelected true
2121
ReportByDevice false
22-
{% if ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version('18', '<') %}
22+
{% if ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_major_version'] is version('18', '<') %}
2323
ReportReserved true
2424
{% endif %}
2525
ValuesAbsolute true

tests/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# test file
22
---
3-
- hosts: localhost
3+
- name: converge
4+
hosts: localhost
45
connection: local
56
become: true
67
roles:

0 commit comments

Comments
 (0)