0326363e48
- Use zuul_return fake module to make ansible lint happy, this allows to remove Zuul import. - While ansible-lint 4.2.0 is now able to detect playbooks/roles, this is broken, so don't use it - move its config out of tox.ini so it can be used by any tools, or without tox Change-Id: Ie8935f47db855647e19ae091044e5ac1871f1551 Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com> Co-Authored-By: Andreas Jaeger <aj@suse.com>
17 lines
572 B
YAML
17 lines
572 B
YAML
- hosts: localhost
|
|
tasks:
|
|
- block:
|
|
- name: Create AFS token
|
|
include_role:
|
|
name: create-afs-token
|
|
- name: Upload to afs
|
|
include_role:
|
|
name: upload-afs-synchronize
|
|
vars:
|
|
afs_source: "{{ zuul.executor.work_root }}/artifacts/"
|
|
afs_target: "/afs/.openstack.org/project/tarballs.opendev.org/openstack/translation-source/{{ zuul.project.short_name }}/"
|
|
- name: Destroy AFS token
|
|
include_role:
|
|
name: destroy-afs-token
|
|
when: zuul_success | bool
|