openstack-ansible/zuul.d/playbooks/run.yml
Logan V 13ffd8a459 Update ARA installation and loading
- Allow ARA installation to be disabled in gate-check-commit. For
  backwards compatibility, this remains defaulted to true. However
  in the OSA gate, the pre-run playbook will install ARA so we set
  it to false during the gate-check-commit run rather than waste
  time installing it twice.

- Separate the ARA installation from loading. Continue installing
  ARA using the setup_ara function, but do not load ARA into the
  callback plugins env var there. Instead, we will load ARA into
  the ANSIBLE_CALLBACK_PLUGINS inside the openstack-ansible wrapper
  if it is installed.

- Move ARA installation function call to run right after the
  ansible-runtime venv is created. This makes little difference
  except that ARA will now be installed in time for the
  get-ansible-role-requirements role clone run.

Change-Id: I8ec359f5c65c957064a39b75b9c3ea3d3a9d9e89
2019-05-13 10:05:54 -05:00

25 lines
826 B
YAML

- hosts: all[0]
vars_files:
- "{{ zuul.executor.work_root }}/osa-gate-scenario.yml"
tasks:
- name: Run gate-check-commit.sh script
become: yes
become_user: root
shell: >-
scripts/gate-check-commit.sh
{{ scenario | quote }}
{{ action | quote }}
{{ install_method | quote }}
args:
chdir: "src/opendev.org/openstack/openstack-ansible"
executable: /bin/bash
environment:
# NOTE(logan): ARA is already installed in the gate environment by the
# pre-osa-aio pre-run playbook
SETUP_ARA: false
# NOTE(logan): The project is bootstrapped in the pre playbook so the
# bootstrapping can be skipped here
SKIP_OSA_RUNTIME_VENV_BUILD: 1
SKIP_OSA_BOOTSTRAP_AIO: 1
SKIP_OSA_ROLE_CLONE: 1