Skip to content

Commit

Permalink
Add support for non-RedHat OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
okin committed Jun 27, 2023
1 parent b01aeb6 commit de247c5
Showing 1 changed file with 9 additions and 1 deletion.
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 de247c5

Please sign in to comment.