2016-01-05 17:57:55 +00:00
|
|
|
---
|
2020-07-07 17:14:37 +01:00
|
|
|
- import_tasks: register.yml
|
2021-08-10 09:16:59 +01:00
|
|
|
when: ironic_enable_keystone_integration | bool
|
2016-01-05 17:57:55 +00:00
|
|
|
|
2020-06-29 15:06:53 +01:00
|
|
|
- import_tasks: config-host.yml
|
2020-01-17 17:00:21 +00:00
|
|
|
|
2020-06-29 15:06:53 +01:00
|
|
|
- import_tasks: config.yml
|
2016-01-05 17:57:55 +00:00
|
|
|
|
2020-07-30 14:36:15 +02:00
|
|
|
- import_tasks: check-containers.yml
|
|
|
|
|
2018-07-23 12:58:02 +08:00
|
|
|
- include_tasks: clone.yml
|
2018-05-28 15:03:18 +00:00
|
|
|
when: ironic_dev_mode | bool
|
|
|
|
|
2020-07-07 17:14:37 +01:00
|
|
|
- import_tasks: bootstrap.yml
|
2017-01-23 12:14:50 +08:00
|
|
|
|
|
|
|
- name: Flush handlers
|
|
|
|
meta: flush_handlers
|
2019-04-03 17:33:04 +01:00
|
|
|
|
|
|
|
# NOTE(mgoddard): If inspector was previously configured to use the iptables
|
|
|
|
# PXE filter, it may leave rules in place that block inspection. Clean them up.
|
|
|
|
# The iptables Ansible module is not idempotent - it fails if the chain does
|
|
|
|
# not exist, so use a command instead.
|
|
|
|
- name: Flush and delete ironic-inspector iptables chain
|
|
|
|
become: true
|
|
|
|
command: iptables --{{ item }} ironic-inspector
|
|
|
|
register: ironic_inspector_chain
|
|
|
|
with_items:
|
|
|
|
- flush
|
|
|
|
- delete-chain
|
|
|
|
when: ironic_inspector_pxe_filter != 'iptables'
|
|
|
|
changed_when: ironic_inspector_chain.rc == 0
|
|
|
|
failed_when:
|
|
|
|
- ironic_inspector_chain.rc != 0
|
|
|
|
- "'No chain/target/match by that name' not in ironic_inspector_chain.stderr"
|