Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
048e514
ci: test latests linux distros
MonolithProjects Dec 20, 2025
dc2144e
fix: linting
MonolithProjects Dec 20, 2025
16268f0
ci: small fix
MonolithProjects Dec 20, 2025
364c4b2
fix: linting
MonolithProjects Dec 20, 2025
0ecba62
ci: empty line
MonolithProjects Dec 20, 2025
6b1ff3a
docs: update vars in readme file
MonolithProjects Dec 20, 2025
d2e4f07
ci: use different image source
MonolithProjects Dec 20, 2025
9254bcf
ci: use different image source
MonolithProjects Dec 20, 2025
8cc69a9
ci: latest epel role
MonolithProjects Dec 20, 2025
28761e4
ci: root user
MonolithProjects Dec 20, 2025
486aa99
ci: os env var
MonolithProjects Dec 20, 2025
a1ce977
ci: correct ubuntu image
MonolithProjects Dec 20, 2025
9d19a06
ci: correct ubuntu image
MonolithProjects Dec 20, 2025
9cae809
ci: remove unnecessary env vars
MonolithProjects Dec 20, 2025
ad8f169
ci: try no sudo
MonolithProjects Dec 20, 2025
c8a6106
ci: add wa for rockylinux
MonolithProjects Dec 20, 2025
8700a42
ci: add wa for rockylinux
MonolithProjects Dec 20, 2025
98f533e
ci: add wa for rockylinux
MonolithProjects Dec 20, 2025
f937687
ci: add wa for rockylinux
MonolithProjects Dec 20, 2025
641ca4e
ci: add wa for rockylinux
MonolithProjects Dec 20, 2025
6660a23
ci: support rockylinux 9
MonolithProjects Dec 20, 2025
0ff3ee6
ci: test org
MonolithProjects Dec 20, 2025
77c5a92
ci: test org
MonolithProjects Dec 20, 2025
36b30af
ci: test org
MonolithProjects Dec 20, 2025
68952ef
ci: test org
MonolithProjects Dec 20, 2025
f28ea18
ci: small fixes
MonolithProjects Dec 21, 2025
51bd440
ci: some linting
MonolithProjects Dec 21, 2025
c5298cb
ci: bump pre-commit repos
MonolithProjects Dec 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 31 additions & 33 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,14 @@ on:
- master
- develop
paths:
- 'defaults/**'
- 'handlers/**'
- 'molecule/**'
- 'tasks/**'
- 'templates/**'
- 'vars/**'
schedule:
- cron: '0 6 * * 0'
- "defaults/**"
- "handlers/**"
- "molecule/**"
- "tasks/**"
- "templates/**"
- "vars/**"
workflow_dispatch:

env:
MOLECULE_DOCKER_VOLUMES: rw
MOLECULE_DOCKER_CGROUPS_MODE: host

jobs:
repo:
name: Test GHA Runner Role
Expand All @@ -31,21 +25,25 @@ jobs:
max-parallel: 5
matrix:
config:
- os: "debian11"
- os: "fedora39"
- os: "ubuntu20"
- os: "ubuntu22"
- os: "debian13"
- os: "fedora43"
- os: "ubuntu2404"
- os: "rockylinux9"
steps:
- name: checkout
uses: actions/checkout@v6
with:
path: "${{ github.repository }}"

- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"

- name: Set up Python 3
uses: actions/setup-python@v6
with:
python-version: '3.14'
python-version: "3.14"

- name: Install test dependencies
run: |
Expand All @@ -55,11 +53,9 @@ jobs:
run: molecule test --scenario-name repo
working-directory: "${{ github.repository }}"
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_IMAGE: ${{ matrix.config.os }}
MOLECULE_DOCKER_CGROUPS_MODE: ${{ matrix.config.cgroup_mode }}
MOLECULE_DOCKER_VOLUMES: ${{ matrix.config.volumes }}
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_DISTRO: ${{ matrix.config.os }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GITHUB_ACCOUNT: monolithprojects-testorg
GITHUB_REPO: ansible-github_actions_runner-testrepo
Expand All @@ -75,34 +71,36 @@ jobs:
max-parallel: 5
matrix:
config:
- os: "debian11"
- os: "fedora37"
- os: "ubuntu20"
- os: "ubuntu22"
- os: "debian13"
- os: "fedora43"
- os: "ubuntu2404"
- os: "rockylinux9"
steps:
- name: checkout
uses: actions/checkout@v6
with:
path: "${{ github.repository }}"

- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"

- name: Set up Python 3
uses: actions/setup-python@v6
with:
python-version: '3.14'
python-version: "3.14"

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

- name: Run Molecule tests -
- name: Run Molecule tests - org
run: molecule test --scenario-name org
working-directory: "${{ github.repository }}"
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_IMAGE: ${{ matrix.config.os }}
MOLECULE_DOCKER_CGROUPS_MODE: ${{ matrix.config.cgroup_mode }}
MOLECULE_DOCKER_VOLUMES: ${{ matrix.config.volumes }}
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_DISTRO: ${{ matrix.config.os }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GITHUB_ACCOUNT: monolithprojects-testorg
GITHUB_REPO: ansible-github_actions_runner-testrepo
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.cache
*.gz
.ansible
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v6.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
Expand All @@ -9,7 +9,7 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/adrienverge/yamllint
rev: v1.26.3
rev: v1.37.1
hooks:
- id: yamllint
args: [-c=.yamllint]
Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Personal Access Token for GitHub account can be created [here](https://github.co
* Runner user has to be pre-created.
Recommended role: `monolithprojects.user_management`

* CentOS systems require EPEL repository.
* CentOS and RockyLinuxsystems require EPEL repository.
Recommended role: `robertdebock.epel`

## Supported CPU architecture
Expand All @@ -55,25 +55,24 @@ Personal Access Token for GitHub account can be created [here](https://github.co

## Supported Operating Systems

* Red Hat Enterprise Linux 7+
* CentOS 7+
* Red Hat Enterprise Linux 8+
* Rocky Linux 8+
* Fedora 29+
* Debian 9+
* Ubuntu 18.04+
* Fedora 40+
* Debian 10+
* Ubuntu 22.04+
* MacOS High Sierra +
* Windows

## Weekly tested on:

* Debian 11
* Fedora 39
* Debian 13
* Fedora 43
* Rocky Linux 9
* Ubuntu 20,22
* Ubuntu 24

## Role Variables

This is a copy from `defaults/main.yml`
This is a copy of `defaults/main.yml`

```yaml
---
Expand Down Expand Up @@ -113,9 +112,6 @@ runner_org: false
# Labels to apply to the runner
runner_labels: []

# 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.
runner_no_default_labels: false

# Group to add organization runner to
runner_group: ""

Expand All @@ -126,6 +122,9 @@ runner_download_repository: "actions/runner"
# Several arguments must be set as one string (i.e. "--ephemeral --my_special_fork")
runner_extra_config_args: ""

# 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.
runner_no_default_labels: false

# Name to assign to this runner in GitHub (System hostname as default)
runner_name: "{{ ansible_facts.hostname }}"

Expand Down
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ runner_download_repository: "actions/runner"
# Several arguments must be set as one string (i.e. "--ephemeral --my_special_fork")
runner_extra_config_args: ""

# 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.
# 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.
runner_no_default_labels: false

# Name to assign to this runner in GitHub (System hostname as default)
Expand Down
13 changes: 0 additions & 13 deletions molecule/custom_env/cleanup.yml

This file was deleted.

21 changes: 0 additions & 21 deletions molecule/custom_env/converge.yml

This file was deleted.

39 changes: 0 additions & 39 deletions molecule/custom_env/molecule.yml

This file was deleted.

5 changes: 0 additions & 5 deletions molecule/custom_env/requirements.yml

This file was deleted.

49 changes: 0 additions & 49 deletions molecule/custom_env/verify.yml

This file was deleted.

3 changes: 1 addition & 2 deletions molecule/default/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
- name: Cleanup
user: ansible
hosts: all
become: yes
vars:
runner_user: ansible
runner_user: root
github_repo: "{{ lookup('env', 'GITHUB_REPO') }}"
github_account: "{{ lookup('env', 'GITHUB_ACCOUNT') }}"
runner_state: absent
Expand Down
Loading
Loading