Create image cache directory with right permissions
When not using provision role we still want to have image cache directory to be readable by non_root_user. By default it's /var/cache/tripleo-quickstart/images, so it should be created by root. Change-Id: I40d54329ad2fdcfcee8df0afc8e672f0381a4164
This commit is contained in:
parent
b553b7d0d9
commit
3e2d1ce40f
|
@ -14,6 +14,10 @@
|
|||
file:
|
||||
path: "{{ image_cache_dir }}"
|
||||
state: directory
|
||||
owner: "{{ non_root_user }}"
|
||||
group: "{{ non_root_group }}"
|
||||
mode: "ug+rwx"
|
||||
become: true
|
||||
|
||||
- include: fetch.yml
|
||||
vars:
|
||||
|
|
|
@ -117,16 +117,6 @@
|
|||
ansible_host: "{{ virthost }}"
|
||||
ansible_private_key_file: "{{ virt_host_key }}"
|
||||
|
||||
# Create the image_cache_dir
|
||||
- name: Ensure image cache directory exists
|
||||
file:
|
||||
path: "{{ image_cache_dir }}"
|
||||
state: directory
|
||||
owner: "{{ non_root_user }}"
|
||||
group: "{{ non_root_group }}"
|
||||
mode: "ug+rwx"
|
||||
become: true
|
||||
|
||||
# Create the volume pool directory if it doesn't already exist. This
|
||||
# will be the target of the libvirt volume pool we create in the next
|
||||
# task.
|
||||
|
|
Loading…
Reference in New Issue