842e4330a4
This allows us to add the build-wheel-mirror jobs to openstack/requirements check pipelines, but not release wheels to afs. Making it easier to properly debug these jobs, otherwise an infra-root must manually enqueue-ref for periodic pipeline. Change-Id: Iabedbfeb62f1773d10462e8b07bbe82f1fb76389 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
27 lines
766 B
YAML
27 lines
766 B
YAML
- hosts: all
|
|
strategy: free
|
|
|
|
pre_tasks:
|
|
- name: Generate AFS slug - CentOS
|
|
set_fact:
|
|
afs_slug: "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}"
|
|
when: ansible_distribution == "CentOS"
|
|
|
|
- name: Generate AFS slug - Ubuntu
|
|
set_fact:
|
|
afs_slug: "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}-{{ ansible_architecture }}"
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- name: Set fact for AFS dir
|
|
set_fact:
|
|
afs_dir: "/afs/.openstack.org/mirror/wheel/{{ afs_slug }}/"
|
|
|
|
- name: Set fact for wheel dir
|
|
set_fact:
|
|
wheel_dir: /opt/wheel/workspace
|
|
|
|
roles:
|
|
- create-afs-token
|
|
- copy-wheels
|
|
- destroy-afs-token
|