Use bool filter with enable_ironic_pxe_uefi

Without the bool filter, "no" is interpreted as True.

Change-Id: I8812b72102199f533730cbde85b8ffe61cf81218
Closes-Bug: #1742969
This commit is contained in:
Mark Goddard 2018-01-12 15:47:17 +00:00
parent 95cd334707
commit 98a4b44822
3 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,7 @@
# Only required when Ironic inspector is in use.
- groups['ironic-inspector'] | length > 0
- inventory_hostname in groups['ironic-pxe']
- not enable_ironic_pxe_uefi
- not enable_ironic_pxe_uefi | bool
- name: Copying ironic_pxe_uefi.cfg default
template:
@ -97,7 +97,7 @@
# Only required when Ironic inspector is in use.
- groups['ironic-inspector'] | length > 0
- inventory_hostname in groups['ironic-pxe']
- not enable_ironic_pxe_uefi
- not enable_ironic_pxe_uefi | bool
- name: Check if policies shall be overwritten
local_action: stat path="{{ node_custom_config }}/ironic/policy.json"

View File

@ -28,7 +28,7 @@
- container_facts['ironic_inspector'] is not defined
- inventory_hostname in groups['ironic-inspector']
- name: Checking ironic-agent files exist for Ironic
- name: Checking ironic-agent files exist for Ironic Inspector
local_action: stat path="{{ node_custom_config }}/ironic/{{ item }}"
run_once: True
register: result
@ -37,7 +37,7 @@
# Only required when Ironic inspector is in use.
- groups['ironic-inspector'] | length > 0
- inventory_hostname in groups['ironic-pxe']
- not enable_ironic_pxe_uefi
- not enable_ironic_pxe_uefi | bool
with_items:
- "ironic-agent.kernel"
- "ironic-agent.initramfs"

View File

@ -5,7 +5,7 @@
"command": "/usr/sbin/in.tftpd --verbose --foreground --user root --address 0.0.0.0:69 --map-file /map-file /tftpboot",
"config_files": [
{% if groups['ironic-inspector'] | length > 0 %}
{% if not enable_ironic_pxe_uefi %}
{% if not enable_ironic_pxe_uefi | bool %}
{
"source": "{{ container_config_directory }}/ironic-agent.kernel",
"dest": "/tftpboot/ironic-agent.kernel",