Check whether image cache directory is writeable
This commit is contained in:
parent
bc6f517938
commit
b5eb53f60e
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user