Skip to content

Commit

Permalink
Merge pull request #156 from MonolithProjects/develop
Browse files Browse the repository at this point in the history
Develop to Master
  • Loading branch information
MonolithProjects authored Jan 13, 2023
2 parents ccb5072 + 469e19a commit 32b93a5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 3
matrix:
config:
- os: "debian11"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Galaxy Quality](https://img.shields.io/ansible/quality/47375?style=flat&logo=ansible)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
[![Role version](https://img.shields.io/github/v/release/MonolithProjects/ansible-github_actions_runner)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
[![Role downloads](https://img.shields.io/ansible/role/d/47375)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
[![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)
[![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)
[![License](https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner)](https://github.com/MonolithProjects/ansible-github_actions_runner/blob/main/LICENSE)


Expand Down
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ platforms:
command: /sbin/init
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:${MOLECULE_DOCKER_VOLUMES:-ro}" # Use "ro" for cgroup v1 and "rw" for cgroup v2
cgroupns_mode: ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and "host" for cgroup v2
cgroups_mode: ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and "host" for cgroup v2
privileged: true
pre_build_image: true
verifier:
Expand Down
5 changes: 5 additions & 0 deletions tasks/collect_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@
- name: Check service facts
ansible.builtin.service_facts:

- name: Get Runner User IDs
ansible.builtin.getent:
database: passwd
key: "{{ runner_user }}"

check_mode: false
6 changes: 4 additions & 2 deletions tasks/install_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
path: "{{ runner_dir }}"
state: directory
mode: 0755
owner: "{{ runner_user }}"
owner: "{{ ansible_facts.getent_passwd[runner_user].1 }}"
group: "{{ ansible_facts.getent_passwd[runner_user].2 }}"

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

0 comments on commit 32b93a5

Please sign in to comment.