Skip to content

Commit 32b93a5

Browse files
Merge pull request #156 from MonolithProjects/develop
Develop to Master
2 parents ccb5072 + 469e19a commit 32b93a5

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
runs-on: ubuntu-20.04
2525
strategy:
2626
fail-fast: false
27+
max-parallel: 3
2728
matrix:
2829
config:
2930
- os: "debian11"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Galaxy Quality](https://img.shields.io/ansible/quality/47375?style=flat&logo=ansible)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
55
[![Role version](https://img.shields.io/github/v/release/MonolithProjects/ansible-github_actions_runner)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
66
[![Role downloads](https://img.shields.io/ansible/role/d/47375)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
7-
[![GitHub Actions](https://github.com/MonolithProjects/ansible-github_actions_runner/workflows/molecule%20test/badge.svg?branch=master)](https://github.com/MonolithProjects/ansible-github_actions_runner/actions)
7+
[![Molecule test](https://github.com/MonolithProjects/ansible-github_actions_runner/actions/workflows/tests.yml/badge.svg)](https://github.com/MonolithProjects/ansible-github_actions_runner/actions/workflows/tests.yml)
88
[![License](https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner)](https://github.com/MonolithProjects/ansible-github_actions_runner/blob/main/LICENSE)
99

1010

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ platforms:
2121
command: /sbin/init
2222
volumes:
2323
- "/sys/fs/cgroup:/sys/fs/cgroup:${MOLECULE_DOCKER_VOLUMES:-ro}" # Use "ro" for cgroup v1 and "rw" for cgroup v2
24-
cgroupns_mode: ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and "host" for cgroup v2
24+
cgroups_mode: ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and "host" for cgroup v2
2525
privileged: true
2626
pre_build_image: true
2727
verifier:

tasks/collect_info.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@
3737
- name: Check service facts
3838
ansible.builtin.service_facts:
3939

40+
- name: Get Runner User IDs
41+
ansible.builtin.getent:
42+
database: passwd
43+
key: "{{ runner_user }}"
44+
4045
check_mode: false

tasks/install_runner.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
path: "{{ runner_dir }}"
55
state: directory
66
mode: 0755
7-
owner: "{{ runner_user }}"
7+
owner: "{{ ansible_facts.getent_passwd[runner_user].1 }}"
8+
group: "{{ ansible_facts.getent_passwd[runner_user].2 }}"
89

910
- name: Find the latest runner version (RUN ONCE)
1011
ansible.builtin.uri:
@@ -39,7 +40,8 @@
3940
src: "https://github.com/{{ runner_download_repository }}/releases/download/v{{ runner_version }}/\
4041
actions-runner-linux-{{ github_actions_architecture }}-{{ runner_version }}.tar.gz"
4142
dest: "{{ runner_dir }}/"
42-
owner: "{{ runner_user }}"
43+
owner: "{{ ansible_facts.getent_passwd[runner_user].1 }}"
44+
group: "{{ ansible_facts.getent_passwd[runner_user].2 }}"
4345
remote_src: yes
4446
mode: 0755
4547
become: true

0 commit comments

Comments
 (0)