--- # ============================================================================ # Podman + Quadlet prerequisites # ============================================================================ # Ubuntu 24.04 ships podman 4.9+, which has full Quadlet support. No PPAs # needed. # ============================================================================ - name: Install podman ansible.builtin.apt: name: - podman - uidmap state: present update_cache: true cache_valid_time: 3600 - name: Ensure quadlet directory exists ansible.builtin.file: path: "{{ semaphore_quadlet_dir }}" state: directory owner: root group: root mode: "0755" - name: Confirm podman is recent enough for Quadlet (>= 4.4) block: - name: Probe podman version ansible.builtin.command: cmd: podman --version register: podman_version_raw changed_when: false - name: Assert podman >= 4.4 ansible.builtin.assert: that: - (podman_version_raw.stdout | regex_search('([0-9]+\\.[0-9]+)') | float) >= 4.4 fail_msg: >- podman {{ podman_version_raw.stdout }} is too old for Quadlet. Quadlet was introduced in 4.4. Upgrade podman or use the generate-systemd fallback path.