mirror of
https://gitea.0xace.cc/ansible-galaxy/podman.git
synced 2024-11-24 23:06:39 +00:00
add Debian support
This commit is contained in:
parent
3caa5a2049
commit
5e53d8d50b
6
tasks/Debian.yaml
Normal file
6
tasks/Debian.yaml
Normal 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
|
@ -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
2
vars/Debian.yaml
Normal 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 }}"
|
Loading…
Reference in New Issue
Block a user