From b7a4e017f1aa233ecfcba24017bec0ab020f97cd Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 8 Mar 2019 16:57:21 +0000 Subject: [PATCH] tasks: lxc_cache_preparation: Ensure the /opt directory exists in the container Change-Id: I8f9fa9a3795add5e695a731411f9b13187ced43f --- tasks/lxc_cache_preparation.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/lxc_cache_preparation.yml b/tasks/lxc_cache_preparation.yml index 1dd44bdf..b86bf435 100644 --- a/tasks/lxc_cache_preparation.yml +++ b/tasks/lxc_cache_preparation.yml @@ -101,6 +101,11 @@ mode: "{{ item.mode | default('0644') }}" 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 template: src: "{{ lxc_cache_prep_template }}"