add Debian support

This commit is contained in:
ace 2024-04-03 18:13:41 +03:00
parent 3caa5a2049
commit 5e53d8d50b
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
3 changed files with 10 additions and 1 deletions

6
tasks/Debian.yaml Normal file
View File

@ -0,0 +1,6 @@
---
- name: Ensure {{ podman_package }} installed
apt:
name: "{{ podman_package }}"
state: "{{ 'latest' if podman_version == 'latest' else 'present' }}"
update_cache: yes

View File

@ -1,5 +1,6 @@
---
- name: Ensure {{ podman_package }} installed
yum:
dnf:
name: "{{ podman_package }}"
state: "{{ 'latest' if podman_version == 'latest' else 'present' }}"
update_cache: yes

2
vars/Debian.yaml Normal file
View File

@ -0,0 +1,2 @@
podman_package_name: podman
podman_package: "{{ podman_package_name + '-' + podman_version if (podman_version is defined and (podman_version != '*' and podman_version != '' and podman_version != 'latest')) else podman_package_name }}"