project-config/playbooks/translation/openstack-translation-artifacts.yaml
Ian Wienand 76037c434e linter: add name to blocks
A later version of ansible-lint enforces names on blocks.  This is
generally a good rule; fix a few missing blocks here.

Change-Id: Ia87a0c21ec0ed1662e37cbc9e17a0df344b54e57
2022-07-28 12:03:23 +10:00

18 lines
598 B
YAML

- hosts: localhost
tasks:
- name: Upload to AFS
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