2018-10-04 12:47:48 -05:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2020-06-11 11:30:01 -05:00
|
|
|
---
|
2018-10-04 12:47:48 -05:00
|
|
|
- hosts: primary
|
|
|
|
tasks:
|
2020-07-16 10:34:10 -05:00
|
|
|
- name: Ensure pip
|
|
|
|
include_role:
|
|
|
|
name: ensure-pip
|
2021-08-30 18:58:47 -05:00
|
|
|
- name: Clear firewall
|
|
|
|
include_role:
|
|
|
|
name: clear-firewall
|
2020-07-11 16:48:11 -05:00
|
|
|
- name: Override images
|
|
|
|
include_role:
|
|
|
|
name: override-images
|
2020-09-28 09:49:08 -05:00
|
|
|
when: buildset_registry is defined
|
2020-12-03 19:42:47 +00:00
|
|
|
- name: Use docker mirror
|
|
|
|
include_role:
|
|
|
|
name: use-docker-mirror
|
2019-01-02 14:47:35 -06:00
|
|
|
- name: "creating directory for run artifacts"
|
|
|
|
file:
|
|
|
|
path: "/tmp/artifacts"
|
|
|
|
state: directory
|
2020-07-07 00:11:25 -05:00
|
|
|
|
2018-10-04 12:47:48 -05:00
|
|
|
- name: Run gate scripts
|
|
|
|
include_role:
|
2020-07-07 00:11:25 -05:00
|
|
|
name: "{{ ([item] | flatten | length == 1) | ternary('osh-run-script', 'osh-run-script-set') }}"
|
2018-10-04 12:47:48 -05:00
|
|
|
vars:
|
2020-07-07 00:11:25 -05:00
|
|
|
workload: "{{ [item] | flatten }}"
|
|
|
|
loop: "{{ gate_scripts }}"
|
|
|
|
|
2019-01-02 14:47:35 -06:00
|
|
|
- name: "Downloads artifacts to executor"
|
|
|
|
synchronize:
|
|
|
|
src: "/tmp/artifacts"
|
|
|
|
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
|
|
|
mode: pull
|
|
|
|
ignore_errors: True
|
2020-06-11 11:30:01 -05:00
|
|
|
...
|