diff --git a/ansible/roles/nova/tasks/precheck.yml b/ansible/roles/nova/tasks/precheck.yml index 1f98d408d1..3b4f623361 100644 --- a/ansible/roles/nova/tasks/precheck.yml +++ b/ansible/roles/nova/tasks/precheck.yml @@ -12,9 +12,14 @@ register: container_facts - name: Checking available compute nodes in inventory + vars: + nova_compute_ironic: "{{ nova_services['nova-compute-ironic'] }}" fail: - msg: "At least 1 compute node required in inventory" - when: groups['compute'] | length < 1 + msg: > + At least 1 compute node required in inventory when ironic is disabled. + when: + - groups['compute'] | length < 1 + - not nova_compute_ironic.enabled | bool - name: Checking free port for Nova API vars: