Skip to content

Commit 37d1ab7

Browse files
ci: test latests linux distros and some other fixes
1 parent 2154312 commit 37d1ab7

36 files changed

+197
-410
lines changed

.github/workflows/tests.yml

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,14 @@ on:
66
- master
77
- develop
88
paths:
9-
- 'defaults/**'
10-
- 'handlers/**'
11-
- 'molecule/**'
12-
- 'tasks/**'
13-
- 'templates/**'
14-
- 'vars/**'
15-
schedule:
16-
- cron: '0 6 * * 0'
9+
- "defaults/**"
10+
- "handlers/**"
11+
- "molecule/**"
12+
- "tasks/**"
13+
- "templates/**"
14+
- "vars/**"
1715
workflow_dispatch:
1816

19-
env:
20-
MOLECULE_DOCKER_VOLUMES: rw
21-
MOLECULE_DOCKER_CGROUPS_MODE: host
22-
2317
jobs:
2418
repo:
2519
name: Test GHA Runner Role
@@ -31,21 +25,25 @@ jobs:
3125
max-parallel: 5
3226
matrix:
3327
config:
34-
- os: "debian11"
35-
- os: "fedora39"
36-
- os: "ubuntu20"
37-
- os: "ubuntu22"
28+
- os: "debian13"
29+
- os: "fedora43"
30+
- os: "ubuntu2404"
3831
- os: "rockylinux9"
3932
steps:
4033
- name: checkout
4134
uses: actions/checkout@v6
4235
with:
4336
path: "${{ github.repository }}"
4437

38+
- name: Remove unnecessary files
39+
run: |
40+
sudo rm -rf /usr/share/dotnet
41+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
42+
4543
- name: Set up Python 3
4644
uses: actions/setup-python@v6
4745
with:
48-
python-version: '3.14'
46+
python-version: "3.14"
4947

5048
- name: Install test dependencies
5149
run: |
@@ -55,11 +53,9 @@ jobs:
5553
run: molecule test --scenario-name repo
5654
working-directory: "${{ github.repository }}"
5755
env:
58-
PY_COLORS: '1'
59-
ANSIBLE_FORCE_COLOR: '1'
60-
MOLECULE_IMAGE: ${{ matrix.config.os }}
61-
MOLECULE_DOCKER_CGROUPS_MODE: ${{ matrix.config.cgroup_mode }}
62-
MOLECULE_DOCKER_VOLUMES: ${{ matrix.config.volumes }}
56+
PY_COLORS: "1"
57+
ANSIBLE_FORCE_COLOR: "1"
58+
MOLECULE_DISTRO: ${{ matrix.config.os }}
6359
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
6460
GITHUB_ACCOUNT: monolithprojects-testorg
6561
GITHUB_REPO: ansible-github_actions_runner-testrepo
@@ -75,34 +71,36 @@ jobs:
7571
max-parallel: 5
7672
matrix:
7773
config:
78-
- os: "debian11"
79-
- os: "fedora37"
80-
- os: "ubuntu20"
81-
- os: "ubuntu22"
74+
- os: "debian13"
75+
- os: "fedora43"
76+
- os: "ubuntu2404"
8277
- os: "rockylinux9"
8378
steps:
8479
- name: checkout
8580
uses: actions/checkout@v6
8681
with:
8782
path: "${{ github.repository }}"
8883

84+
- name: Remove unnecessary files
85+
run: |
86+
sudo rm -rf /usr/share/dotnet
87+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
88+
8989
- name: Set up Python 3
9090
uses: actions/setup-python@v6
9191
with:
92-
python-version: '3.14'
92+
python-version: "3.14"
9393

9494
- name: Install test dependencies
9595
run: pip3 install ansible docker molecule molecule-plugins[docker] "requests<2.29.2" jmespath
9696

97-
- name: Run Molecule tests -
97+
- name: Run Molecule tests - org
9898
run: molecule test --scenario-name org
9999
working-directory: "${{ github.repository }}"
100100
env:
101-
PY_COLORS: '1'
102-
ANSIBLE_FORCE_COLOR: '1'
103-
MOLECULE_IMAGE: ${{ matrix.config.os }}
104-
MOLECULE_DOCKER_CGROUPS_MODE: ${{ matrix.config.cgroup_mode }}
105-
MOLECULE_DOCKER_VOLUMES: ${{ matrix.config.volumes }}
101+
PY_COLORS: "1"
102+
ANSIBLE_FORCE_COLOR: "1"
103+
MOLECULE_DISTRO: ${{ matrix.config.os }}
106104
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
107105
GITHUB_ACCOUNT: monolithprojects-testorg
108106
GITHUB_REPO: ansible-github_actions_runner-testrepo

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.cache
22
*.gz
3+
.ansible

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
3+
rev: v6.0.0
44
hooks:
55
- id: check-yaml
66
args: [--allow-multiple-documents]
@@ -9,7 +9,7 @@ repos:
99
args: [--markdown-linebreak-ext=md]
1010

1111
- repo: https://github.com/adrienverge/yamllint
12-
rev: v1.26.3
12+
rev: v1.37.1
1313
hooks:
1414
- id: yamllint
1515
args: [-c=.yamllint]

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Personal Access Token for GitHub account can be created [here](https://github.co
4545
* Runner user has to be pre-created.
4646
Recommended role: `monolithprojects.user_management`
4747
48-
* CentOS systems require EPEL repository.
48+
* CentOS and RockyLinuxsystems require EPEL repository.
4949
Recommended role: `robertdebock.epel`
5050
5151
## Supported CPU architecture
@@ -55,25 +55,24 @@ Personal Access Token for GitHub account can be created [here](https://github.co
5555
5656
## Supported Operating Systems
5757
58-
* Red Hat Enterprise Linux 7+
59-
* CentOS 7+
58+
* Red Hat Enterprise Linux 8+
6059
* Rocky Linux 8+
61-
* Fedora 29+
62-
* Debian 9+
63-
* Ubuntu 18.04+
60+
* Fedora 40+
61+
* Debian 10+
62+
* Ubuntu 22.04+
6463
* MacOS High Sierra +
6564
* Windows
6665
6766
## Weekly tested on:
6867
69-
* Debian 11
70-
* Fedora 39
68+
* Debian 13
69+
* Fedora 43
7170
* Rocky Linux 9
72-
* Ubuntu 20,22
71+
* Ubuntu 24
7372
7473
## Role Variables
7574
76-
This is a copy from `defaults/main.yml`
75+
This is a copy of `defaults/main.yml`
7776
7877
```yaml
7978
---
@@ -113,9 +112,6 @@ runner_org: false
113112
# Labels to apply to the runner
114113
runner_labels: []
115114
116-
# Disable default labels (self-hosted, Linux, X64) and require custom labels. Set `runner_no_default_labels: true` and provide at least one label in `runner_labels` to use this feature.
117-
runner_no_default_labels: false
118-
119115
# Group to add organization runner to
120116
runner_group: ""
121117
@@ -126,6 +122,9 @@ runner_download_repository: "actions/runner"
126122
# Several arguments must be set as one string (i.e. "--ephemeral --my_special_fork")
127123
runner_extra_config_args: ""
128124
125+
# Disable default labels (self-hosted, Linux, X64) and require custom labels. Set `runner_no_default_labels: true` and provide at least one label in `runner_labels` to use this feature.
126+
runner_no_default_labels: false
127+
129128
# Name to assign to this runner in GitHub (System hostname as default)
130129
runner_name: "{{ ansible_facts.hostname }}"
131130

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ runner_download_repository: "actions/runner"
4545
# Several arguments must be set as one string (i.e. "--ephemeral --my_special_fork")
4646
runner_extra_config_args: ""
4747

48-
# Disable default labels (self-hosted, Linux, X64) and require custom labels. Set `runner_no_default_labels: true` and provide at least one label in `runner_labels` to use this feature.
48+
# Disable default labels (self-hosted, Linux, X64) and require custom labels.
49+
# Set `runner_no_default_labels: true` and provide at least one label in `runner_labels` to use this feature.
4950
runner_no_default_labels: false
5051

5152
# Name to assign to this runner in GitHub (System hostname as default)

molecule/custom_env/cleanup.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

molecule/custom_env/converge.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

molecule/custom_env/molecule.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

molecule/custom_env/requirements.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

molecule/custom_env/verify.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)