devstack/roles/setup-devstack-cache/tasks/main.yaml
Sean Mooney 13e8db5a6f ignore failures to copy the devstack cache
If the ci images do not have any cached data
we should ignore any error when trying to copying it.
This is requried when using unmodified cloud images.

Change-Id: Ia6e94fc01343d0c292b1477905f8a96a6b43bcf8
2022-03-09 20:17:31 +00:00

16 lines
453 B
YAML

- name: Copy cached devstack files
# This uses hard links to avoid using extra space.
command: "find {{ devstack_cache_dir }}/files -mindepth 1 -maxdepth 1 -exec cp -l {} {{ devstack_base_dir }}/devstack/files/ ;"
become: true
ignore_errors: yes
- name: Set ownership of cached files
file:
path: '{{ devstack_base_dir }}/devstack/files'
state: directory
recurse: true
owner: stack
group: stack
mode: a+r
become: yes