Move the ironic-check action into prechecks.yml
Change-Id: Ia1fa141acd7233f0c9dd30dd3d13e31cf1a2fb8e
This commit is contained in:
parent
62d17e48d5
commit
ebf4afdad0
@ -1,6 +1,4 @@
|
||||
---
|
||||
- include_tasks: ironic-check.yml
|
||||
|
||||
- include_tasks: register.yml
|
||||
when: inventory_hostname in groups['neutron-server']
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
- fail: msg="Ironic must be enabled when using networking-baremetal/ironic-neutron-agent"
|
||||
when:
|
||||
- enable_ironic_neutron_agent | bool
|
||||
- not (enable_ironic | bool)
|
@ -57,3 +57,11 @@
|
||||
when:
|
||||
- (groups['inner-compute'] | default([]) | length > 0
|
||||
or groups['external-compute'] | default([]) | length > 0)
|
||||
|
||||
- name: Checking whether Ironic enabled
|
||||
local_action: fail msg="Ironic must be enabled when using networking-baremetal/ironic-neutron-agent"
|
||||
changed_when: false
|
||||
run_once: True
|
||||
when:
|
||||
- enable_ironic_neutron_agent | bool
|
||||
- not (enable_ironic | bool)
|
||||
|
Loading…
Reference in New Issue
Block a user