diff --git a/ansible/roles/kolla-bifrost/tasks/main.yml b/ansible/roles/kolla-bifrost/tasks/main.yml index ab8f1417b47fc8fd9dfe0d79396b677ee3e91732..ad5b6b40d86991002b55554f56b36b62720f2cff 100644 --- a/ansible/roles/kolla-bifrost/tasks/main.yml +++ b/ansible/roles/kolla-bifrost/tasks/main.yml @@ -1,4 +1,12 @@ --- +- name: Check if inspection allocation is defined + assert: + that: + - kolla_bifrost_dhcp_pool_start | length > 0 + - kolla_bifrost_dhcp_pool_end | length > 0 + - kolla_bifrost_dhcp_pool_mask | length > 0 + fail_msg: "Inspection allocation pool for provisioning network is not properly defined" + - name: Ensure the Kolla Bifrost configuration directories exist file: path: "{{ kolla_node_custom_config_path }}/bifrost"