Check whether image cache directory is writeable

This commit is contained in:
Mark Goddard 2018-01-10 19:47:06 +00:00
parent bc6f517938
commit b5eb53f60e
2 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,9 @@
owner: "{{ lookup('env', 'USER') }}"
group: "{{ lookup('env', 'USER') }}"
become: True
when: not image_cache_stat.stat.exists
when: >-
not image_cache_stat.stat.exists or
not image_cache_stat.stat.writeable
- name: Ensure Ironic Python Agent images are copied onto the local machine
fetch:

View File

@ -76,7 +76,9 @@
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
become: True
when: not image_cache_stat.stat.exists
when: >-
not image_cache_stat.stat.exists or
not image_cache_stat.stat.writeable
- name: Ensure locally built Ironic Python Agent (IPA) images are copied
copy: