File tree Expand file tree Collapse file tree 5 files changed +12
-4
lines changed Expand file tree Collapse file tree 5 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 24
24
runs-on : ubuntu-20.04
25
25
strategy :
26
26
fail-fast : false
27
+ max-parallel : 3
27
28
matrix :
28
29
config :
29
30
- os : " debian11"
Original file line number Diff line number Diff line change 4
4
[ ![ Galaxy Quality] ( https://img.shields.io/ansible/quality/47375?style=flat&logo=ansible )] ( https://galaxy.ansible.com/monolithprojects/github_actions_runner )
5
5
[ ![ Role version] ( https://img.shields.io/github/v/release/MonolithProjects/ansible-github_actions_runner )] ( https://galaxy.ansible.com/monolithprojects/github_actions_runner )
6
6
[ ![ 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 )
8
8
[ ![ License] ( https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner )] ( https://github.com/MonolithProjects/ansible-github_actions_runner/blob/main/LICENSE )
9
9
10
10
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ platforms:
21
21
command : /sbin/init
22
22
volumes :
23
23
- " /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
25
25
privileged : true
26
26
pre_build_image : true
27
27
verifier :
Original file line number Diff line number Diff line change 37
37
- name : Check service facts
38
38
ansible.builtin.service_facts :
39
39
40
+ - name : Get Runner User IDs
41
+ ansible.builtin.getent :
42
+ database : passwd
43
+ key : " {{ runner_user }}"
44
+
40
45
check_mode : false
Original file line number Diff line number Diff line change 4
4
path : " {{ runner_dir }}"
5
5
state : directory
6
6
mode : 0755
7
- owner : " {{ runner_user }}"
7
+ owner : " {{ ansible_facts.getent_passwd[runner_user].1 }}"
8
+ group : " {{ ansible_facts.getent_passwd[runner_user].2 }}"
8
9
9
10
- name : Find the latest runner version (RUN ONCE)
10
11
ansible.builtin.uri :
39
40
src : " https://github.com/{{ runner_download_repository }}/releases/download/v{{ runner_version }}/\
40
41
actions-runner-linux-{{ github_actions_architecture }}-{{ runner_version }}.tar.gz"
41
42
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 }}"
43
45
remote_src : yes
44
46
mode : 0755
45
47
become : true
You can’t perform that action at this time.
0 commit comments