From 8fca2715d38066df15d2997dfc1fc72e07276f3e Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 19 Feb 2018 20:32:48 +0100 Subject: [PATCH] Fix publishing tagged docs Using copy and remote_src does not work recursively. Use "cp" command directly instead. Change-Id: I8f94edf807fb4c320d72526633c40d7d3d9a0a0c --- roles/prepare-docs-for-afs/tasks/tagged.yaml | 6 ++---- roles/prepare-infra-docs-for-afs/tasks/tagged.yaml | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/roles/prepare-docs-for-afs/tasks/tagged.yaml b/roles/prepare-docs-for-afs/tasks/tagged.yaml index ee6da208..e3bd12dd 100644 --- a/roles/prepare-docs-for-afs/tasks/tagged.yaml +++ b/roles/prepare-docs-for-afs/tasks/tagged.yaml @@ -4,10 +4,8 @@ # docs are always the latest release with older tags available under the # root in the tagname dir. - name: Copy content to the temporary location - copy: - remote_src: true - src: "{{ doc_build_dir }}/html" - dest: "{{ doc_build_dir }}/tmp" + # remote_src copy does not work recursively, using command + command: cp -a {{ doc_build_dir }}/html {{ doc_build_dir }}/tmp - name: Make destination path file: diff --git a/roles/prepare-infra-docs-for-afs/tasks/tagged.yaml b/roles/prepare-infra-docs-for-afs/tasks/tagged.yaml index 06fac6d9..1ac81d33 100644 --- a/roles/prepare-infra-docs-for-afs/tasks/tagged.yaml +++ b/roles/prepare-infra-docs-for-afs/tasks/tagged.yaml @@ -4,10 +4,8 @@ # docs are always the latest release with older tags available under the # root in the tagname dir. - name: Copy content to the temporary location - copy: - remote_src: true - src: "{{ doc_build_dir }}/html" - dest: "{{ doc_build_dir }}/tmp" + # remote_src copy does not work recursively, using command + command: cp -a {{ doc_build_dir }}/html {{ doc_build_dir }}/tmp - name: Make destination path file: