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
This commit is contained in:
Andrey Shestakov 2015-11-20 16:20:58 +02:00
parent 8dd2d97c13
commit f3e59083ab

View File

@ -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"