feat: Move from Debian to Fedora

This commit is contained in:
2026-04-10 15:50:29 +02:00
parent 560a6d31e6
commit 3a55ec0a21
12 changed files with 150 additions and 160 deletions

View File

@@ -1,6 +1,11 @@
---
# tasks file for podman
- name: Install packages
ansible.builtin.dnf:
name: "{{ podman_packages }}"
become: true
- name: Create dedicated group
ansible.builtin.group:
name: "{{ podman_user }}"
@@ -10,40 +15,8 @@
ansible.builtin.user:
name: "{{ podman_user }}"
comment: Dedicated Podman user
home: "{{ podman_user_homedir }}"
password_lock: true
shell: /bin/bash
group: podman
become: true
- name: Disable global podman auto-update
ansible.builtin.systemd_service:
name: podman-auto-update.timer
enabled: false
become: true
- name: Enable containers auto-update service
ansible.builtin.command:
cmd: systemctl --user --machine={{ podman_user }}@ start podman-auto-update.timer
when: podman_auto_update
become: true
- name: Enable lingering for podman user
ansible.builtin.command:
cmd: loginctl enable-linger {{ podman_user }}
creates: /var/lib/systemd/linger/podman
become: true
- name: Create subvolumes paths
ansible.builtin.file:
path: "{{ item.1 | split(':') | first }}"
state: directory
mode: u=rwX,g=rX,o=rX
become: true
loop: "{{ q('ansible.builtin.subelements', podman_containers, 'volumes', {'skip_missing': True}) }}"
loop_control:
label: "{{ item.0.name }}"
register: folders
notify: Set default permissions on volumes folders
- name: Execute handlers
ansible.builtin.meta: flush_handlers