From c2e2b6297442b487408ba35b0b477c61ee66c550 Mon Sep 17 00:00:00 2001 From: Jiri Stransky Date: Mon, 21 Jan 2019 17:01:43 +0100 Subject: [PATCH] Ensure /var/lib/config-data exists before setting selinux context Otherwise the follow up task would fail on newly provisioned nodes. Change-Id: I33017682e878d0542669aa8fbaba1968047aac24 --- common/deploy-steps.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/deploy-steps.j2 b/common/deploy-steps.j2 index a51b7cb0d2..067d5b2deb 100644 --- a/common/deploy-steps.j2 +++ b/common/deploy-steps.j2 @@ -788,6 +788,10 @@ outputs: loop_control: loop_var: step upgrade_steps_tasks: | + - name: ensure /var/lib/config-data exists + file: + path: /var/lib/config-data + state: directory - name: ensure we get the right selinux context command: chcon -R -t svirt_sandbox_file_t /var/lib/config-data args: