1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix yaml python dep in root tests (#96)

Use different python interpretators for root and rootless tests,
as it's a problem in Ubuntu 18.
This commit is contained in:
Sergey 2020-08-03 14:49:55 +03:00 committed by GitHub
parent a38df046a4
commit 69b034b263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 102 additions and 29 deletions

View file

@ -6,3 +6,4 @@
name: podman_container
vars:
idem_image: idempotency_test
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -6,3 +6,4 @@
name: podman_container_idempotency
vars:
idem_image: idempotency_test
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_container_info
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_image
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_image_info
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_network_info
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -6,3 +6,4 @@
name: podman_pod
vars:
idem_image: idempotency_test
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_pod_info
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_volume
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -4,3 +4,5 @@
tasks:
- include_role:
name: podman_volume_info
vars:
ansible_python_interpreter: "{{ _ansible_python_interpreter }}"

View file

@ -16,7 +16,7 @@ CMD="ANSIBLE_ROLES_PATH=${CURWD}/../tests/integration/targets \
${ANSIBLECMD:-ansible-playbook} \
-i localhost, -c local --diff \
ci/playbooks/containers/${TEST2RUN}.yml \
-e ansible_python_interpreter=$(command -v python)"
-e _ansible_python_interpreter=$(command -v python)"
bash -c "$CMD -vv" || exit_code=$?
if [[ "$exit_code" != 0 ]]; then