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 2424 runs-on : ubuntu-20.04
2525 strategy :
2626 fail-fast : false
27+ max-parallel : 3
2728 matrix :
2829 config :
2930 - os : " debian11"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
2727verifier :
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 :
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
You can’t perform that action at this time.
0 commit comments