diff --git a/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml b/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml index 99cff844d..6dbc98155 100644 --- a/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml +++ b/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. --- +# Note(TheJulia): Fact collection from ironic is necessary to obtain +# the host's assigned UUID value. +- name: "Update facts from ironic to fill in any missing values" + include: update_facts_from_ironic.yaml - name: "Identify ssh_public_key if ssh_public_key_path is defined" include: ssh_public_key_path.yaml when: ssh_public_key is undefined and ssh_public_key_path is defined diff --git a/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml b/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml index 2db5d5413..849b20033 100644 --- a/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml +++ b/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml @@ -34,7 +34,7 @@ when: instance_info is not defined - name: "Error if deploy_image is not present, and instance_info is not defined" fail: msg="The user-defined deploy_image, which is the image to be written to the remote node(s) upon deployment, was not found. Cannot proceed." - when: test_deploy_image.stat.exists | bool == false and instance_info is not defined + when: instance_info is not defined and test_deploy_image.stat.exists | bool == false - name: "Deploy to hardware - bifrost default" os_ironic_node: auth_type: None