zuul-jobs/roles/ensure-podman/tasks/main.yaml
Albin Vass bee0c6ae2f ansible-lint: use matchplay instead of matchtask
For some reason matchtask doesn't match includes, matchplay does so use
that instead.

Change-Id: I040f7f3394503e92d06c05e8ff671a43b14baebc
2020-05-05 20:42:38 +02:00

21 lines
554 B
YAML

- name: Find distribution installation
include: "{{ zj_distro_os }}"
static: no
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- "default.yaml"
loop_control:
loop_var: zj_distro_os
- 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