Check whether image cache directory is writeable
This commit is contained in:
parent
bc6f517938
commit
b5eb53f60e
@ -60,7 +60,9 @@
|
|||||||
owner: "{{ lookup('env', 'USER') }}"
|
owner: "{{ lookup('env', 'USER') }}"
|
||||||
group: "{{ lookup('env', 'USER') }}"
|
group: "{{ lookup('env', 'USER') }}"
|
||||||
become: True
|
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
|
- name: Ensure Ironic Python Agent images are copied onto the local machine
|
||||||
fetch:
|
fetch:
|
||||||
|
@ -76,7 +76,9 @@
|
|||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
group: "{{ ansible_user }}"
|
group: "{{ ansible_user }}"
|
||||||
become: True
|
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
|
- name: Ensure locally built Ironic Python Agent (IPA) images are copied
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user