c6842c875d
We saw what looks very much like the index generation racing, with "mv" unable to close the index file ... Move to a linear strategy so that each host finishes each task before moving on. Then add run_once to the index generation so only one of the hosts in a python2/3 situation creates the index file. Change-Id: I3761dd9d2ab752e66bcccdd2434405f11535b95f
27 lines
768 B
YAML
27 lines
768 B
YAML
- hosts: all
|
|
strategy: linear
|
|
|
|
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
|