project-config/playbooks/publish/openstack-afs.yaml
Ian Wienand 92d9cd7d8d
openstack-afs.yaml : correct indentation
This was found by the linter

Change-Id: I91f8b9264b17a27855942c5e375d81ce0b1c99d9
2023-01-11 08:57:11 +11:00

23 lines
712 B
YAML

- hosts: localhost
pre_tasks:
# Note that "{{ afs.path }}" is a valid afs_target and thus
# afs_subpath can be empty, we need this for openstack-manuals
# publishing.
- name: Set default afs_subpath
set_fact:
our_afs_subpath: "/{{ zuul.project.short_name }}"
when: afs_subpath is not defined
- name: Use defined afs_subpath
set_fact:
our_afs_subpath: "{{ afs_subpath }}"
when: afs_subpath is defined
roles:
- role: create-afs-token
when: zuul_success | bool
- role: upload-afs-roots
afs_target: "{{ afs.path }}{{ our_afs_subpath }}"
when: zuul_success | bool
- role: destroy-afs-token
when: zuul_success | bool