Skip to content

Commit

Permalink
Merge pull request #2 from okin/support_non_rpm_systems
Browse files Browse the repository at this point in the history
Support non-rpm systems
  • Loading branch information
zedr authored Jun 14, 2024
2 parents b01aeb6 + 5375e10 commit b6cf7de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A playbook for installing and running a Gitlab Runner instance using Podman
using a normal user. The container still needs to run privileged.

Supports Fedora 33.
Supports Fedora 33, Debian 12.

## Installation

Expand Down
10 changes: 9 additions & 1 deletion roles/gitlab_runner/tasks/podman.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---
- name: "Install Podman and dependencies"
- name: "Install Podman and dependencies (RedHat family)"
when: ansible_facts['os_family'] == "RedHat"
become: yes
dnf:
name:
- podman
- python3-libselinux

- name: "Install Podman and dependencies (non-RedHat family)"
when: ansible_facts['os_family'] != "RedHat"
become: yes
ansible.builtin.package:
name:
- podman

- name: "Add explicit cgroupfs configuration"
become: yes
blockinfile:
Expand Down

0 comments on commit b6cf7de

Please sign in to comment.