From f3e59083ab95e3964c7bbc0acb1c35be4e8c8899 Mon Sep 17 00:00:00 2001 From: Andrey Shestakov Date: Fri, 20 Nov 2015 16:20:58 +0200 Subject: [PATCH] Ensure config directory exists for container ironic-pxe Config directory for ironic-pxe should be created before copying files into it Change-Id: I5ad8e44273c3d185cf7fbe94787aff47595aabb0 Closes-Bug: #1518330 --- ansible/roles/ironic/tasks/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/ironic/tasks/config.yml b/ansible/roles/ironic/tasks/config.yml index 45a3f7ea5b..5216db27ad 100644 --- a/ansible/roles/ironic/tasks/config.yml +++ b/ansible/roles/ironic/tasks/config.yml @@ -72,6 +72,12 @@ src: "roles/ironic/templates/ironic-discoverd.json.j2" dest: "{{ node_config_directory }}/ironic-discoverd/config.json" +- name: Ensuring config directory exists + file: + path: "{{ node_config_directory }}/ironic-pxe/" + state: "directory" + recurse: "yes" + - name: Copying Ironic PXE JSON configuration file template: src: "roles/ironic/templates/ironic-pxe.json.j2"