Docs promotion: create destination directory

...before we try to write something to it.

Change-Id: I095dd85a0e8764cd2884ff80ef8d7aca89abac1d
This commit is contained in:
James E. Blair 2019-03-22 13:27:08 -07:00
parent 68d7800566
commit d9056897f7
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@
when: "zuul.branch != 'master'"
set_fact:
publication_dir: "{{ zuul.branch }}"
- name: Create publication directory
file:
path: "/afs/.openstack.org/project/opendev.org/docs/{{ zuul.project.name }}/"
state: directory
- name: Create redirect htaccess file
copy:
dest: "/afs/.openstack.org/project/opendev.org/docs/{{ zuul.project.name }}/.htaccess"