mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-03 23:01:48 +00:00
17 lines
552 B
YAML
17 lines
552 B
YAML
---
|
|
- hosts: "{{ host|default('all') }}"
|
|
gather_facts: true
|
|
vars:
|
|
repo_dir: "/home/{{ ansible_user }}/ansible-podman-collections"
|
|
distro: "{{ ansible_distribution }}{{ ansible_distribution_major_version }}"
|
|
tasks:
|
|
|
|
- name: Run test script
|
|
become: "{{ distro == 'CentOS7' }}"
|
|
shell: >-
|
|
{% if ansible_venv is defined %}source {{ ansible_venv }}/bin/activate; {% endif %}
|
|
|
|
TEST2RUN={{ test }} {{ repo_dir }}/ci/run_containers_tests.sh
|
|
args:
|
|
chdir: "{{ repo_dir }}"
|
|
executable: /bin/bash
|