tasks: lxc_cache_preparation: Ensure the /opt directory exists in the container

Change-Id: I8f9fa9a3795add5e695a731411f9b13187ced43f
This commit is contained in:
Markos Chandras 2019-03-08 16:57:21 +00:00 committed by Jean-Philippe Evrard
parent 1776570a71
commit b7a4e017f1

View File

@ -101,6 +101,11 @@
mode: "{{ item.mode | default('0644') }}" mode: "{{ item.mode | default('0644') }}"
with_items: "{{ lxc_container_cache_files }}" with_items: "{{ lxc_container_cache_files }}"
- name: Ensure opt directory exists in container
file:
dest: "{{ lxc_image_cache_path }}/opt"
state: directory
- name: Cached image preparation script - name: Cached image preparation script
template: template:
src: "{{ lxc_cache_prep_template }}" src: "{{ lxc_cache_prep_template }}"