openstack-ansible/zuul.d/playbooks/run.yml
Jean-Philippe Evrard 4b93ca2674 Add experimental tests of new ansible versions
This allows us to test if a development version of ansible will
break changes.

Change-Id: I96c8939dcba6206290b57bd4b8c0d229f4affda5
2018-01-27 04:56:05 +00:00

26 lines
867 B
YAML

- hosts: all
tasks:
- name: Set current test repo (cross-repo)
set_fact:
current_test_repo: "git.openstack.org/{{ osa_test_repo }}"
when:
- osa_test_repo is defined
- name: Set current test repo (non-cross-repo)
set_fact:
current_test_repo: "{{ zuul.project.canonical_name }}"
when:
- osa_test_repo is not defined
- name: Run gate-check-commit.sh script
become: yes
become_user: root
command: "scripts/gate-check-commit.sh {{ scenario }} {{ action }}"
args:
chdir: "src/{{ current_test_repo }}"
environment:
# ZUUL_PROJECT is used by tests/get-ansible-role-requirements to
# determine when CI provided repos should be used.
ZUUL_PROJECT: "{{ zuul.project.short_name }}"
ANSIBLE_PACKAGE: "{{ ansible_package | default('') }}"