add podman role

This commit is contained in:
ace 2021-11-16 15:31:29 +03:00
commit 119d7fe089
No account linked to committer's email address
5 changed files with 12 additions and 0 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
Install podman.

2
defaults/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
podman_version: "{{ '1.6.4' if ansible_distribution_major_version == '7' else '3.2.3' if ansible_distribution_major_version == '8' }}"

1
meta/main.yaml Normal file
View File

@ -0,0 +1 @@
dependencies: []

5
tasks/RedHat.yaml Normal file
View File

@ -0,0 +1,5 @@
---
- name: Ensure podman version {{ podman_version }} installed
yum:
name: "podman-{{ podman_version }}"
state: present

3
tasks/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
- name: Include podman install
include_tasks: "{{ ansible_os_family }}.yaml"