diff --git a/README.md b/README.md index 7c70ad3..2c3b217 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/roles/gitlab_runner/tasks/podman.yml b/roles/gitlab_runner/tasks/podman.yml index a10ffab..ed055ad 100644 --- a/roles/gitlab_runner/tasks/podman.yml +++ b/roles/gitlab_runner/tasks/podman.yml @@ -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: