diff --git a/playbooks/docs/promote.yaml b/playbooks/docs/promote.yaml index 06ad372..0279277 100644 --- a/playbooks/docs/promote.yaml +++ b/playbooks/docs/promote.yaml @@ -52,9 +52,13 @@ when: "zuul.branch != 'master'" set_fact: target_dict: "{{ afs.targets.branch }}" + - name: Set publish site + set_fact: + publish_site: "{{ publish_site.format(zuul=zuul) }}" + when: publish_site is defined - name: Set target path set_fact: - target_dir: "{{ target_dict.path.format(zuul=zuul, publish_site=publish_site.format(zuul=zuul), special_publish_directory=special_publish_directory) }}" + target_dir: "{{ target_dict.path.format(zuul=zuul, publish_site=publish_site, special_publish_directory=special_publish_directory) }}" - name: Adjust target path when: "target_dict.regex is defined" set_fact: