diff --git a/defaults/main.yml b/defaults/main.yml index f70fa36..f510e88 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,9 +4,10 @@ # Packages to install to run podman podman_packages: - podman - - policycoreutils-python-utils # to manage SELinux + - systemd-container -# Dedicated user +# Dedicated groupi/user +podman_group: podman podman_user: podman podman_user_homedir: /home/{{ podman_user }} diff --git a/tasks/config.yml b/tasks/config.yml index b383df3..16b7984 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -3,7 +3,7 @@ - name: Create dedicated group ansible.builtin.group: - name: "{{ podman_user }}" + name: "{{ podman_group }}" become: true - name: Create dedicated user @@ -13,7 +13,7 @@ home: "{{ podman_user_homedir }}" password_lock: true shell: /bin/bash - group: podman + group: "{{ podman_group }}" become: true - name: Enable lingering for podman user diff --git a/tasks/main.yml b/tasks/main.yml index d124e9a..a20b991 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,7 +2,7 @@ # tasks file for podman - name: Install packages - ansible.builtin.dnf: + ansible.builtin.apt: name: "{{ podman_packages }}" become: true