13e8db5a6f
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
16 lines
453 B
YAML
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
|