zuul-jobs/roles/ensure-podman/tasks/main.yaml
Sorin Sbarnea 69c53666de Add support for RedHat platforms on ensure-podman
- makes ensure-podman work on additional platforms
- prevents regression on new platforms fedora-30 and centos-8
- enables validation of podman engine

Change-Id: I5842ad22d94522f707ef743622b8950839d96dff
2020-04-06 18:52:07 +01:00

19 lines
503 B
YAML

- name: Find distribution installation
include: "{{ item }}"
static: no
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- "default.yaml"
- name: Validate podman engine
when: ensure_podman_validate
# on purpose to verify that non-root user can call docker/podman
become: false
shell: |
podman version
podman info
podman ps
changed_when: false