1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00
ansible-podman-collections/ci/playbooks/connection_test.yml
Sergey 31dbd55579
Prepare tests to use custom executable, part 6 (#478)
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2022-09-04 22:33:28 +03:00

27 lines
914 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 for podman
become: "{{ distro == 'CentOS7' }}"
shell: >-
{% if ansible_venv is defined %}source {{ ansible_venv }}/bin/activate; {% endif %}
{{ repo_dir }}/ci/run_connection_test.sh podman {{ test_executable | default('podman') }}
args:
chdir: "{{ repo_dir }}"
executable: /bin/bash
- name: Run test script for buildah
become: "{{ distro == 'CentOS7' }}"
shell: >-
{% if ansible_venv is defined %}source {{ ansible_venv }}/bin/activate; {% endif %}
{{ repo_dir }}/ci/run_connection_test.sh buildah
args:
chdir: "{{ repo_dir }}"
executable: /bin/bash