mirror of
https://gitea.0xace.cc/ansible-galaxy/podman.git
synced 2025-07-01 05:13:07 +00:00
add more flexible versioning logic
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: Ensure podman version {{ podman_version }} installed
|
||||
- name: Ensure {{ podman_package }} installed
|
||||
yum:
|
||||
name: "podman-{{ podman_version }}"
|
||||
state: present
|
||||
name: "{{ podman_package }}"
|
||||
state: "{{ 'latest' if podman_version == 'latest' else 'present' }}"
|
||||
|
@ -1,3 +1,13 @@
|
||||
---
|
||||
- name: Load a variable file based on the OS type
|
||||
include_vars: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_facts['distribution'] }}.yaml"
|
||||
- "{{ ansible_facts['os_family'] }}.yaml"
|
||||
paths:
|
||||
- "vars"
|
||||
|
||||
- name: Include podman install
|
||||
include_tasks: "{{ ansible_facts['os_family'] }}.yaml"
|
||||
|
Reference in New Issue
Block a user