From 24127b7463c1d636fca62193d6acd0897575285e Mon Sep 17 00:00:00 2001 From: Bruno Travouillon Date: Thu, 4 Aug 2022 15:07:50 -0400 Subject: [PATCH] fix: Apply correct filters to booleans --- tasks/configure-RedHat.yml | 2 +- templates/ifcfg-ib.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure-RedHat.yml b/tasks/configure-RedHat.yml index 0a95889..bfbb5c7 100644 --- a/tasks/configure-RedHat.yml +++ b/tasks/configure-RedHat.yml @@ -13,6 +13,6 @@ - name: Configure ipoib_enhanced ansible.builtin.lineinfile: path: /etc/modprobe.d/ib_ipoib_enhanced.conf - line: "options ib_ipoib ipoib_enhanced={{ infiniband_ipoib_enhanced | bool }}" + line: "options ib_ipoib ipoib_enhanced={{ infiniband_ipoib_enhanced | bool | int }}" create: true notify: Restart openibd diff --git a/templates/ifcfg-ib.j2 b/templates/ifcfg-ib.j2 index 2c5719e..ab8bdbd 100644 --- a/templates/ifcfg-ib.j2 +++ b/templates/ifcfg-ib.j2 @@ -18,7 +18,7 @@ BOOTPROTO=static ONBOOT=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no -{% if not infiniband_ipoib_enhanced %} +{% if not infiniband_ipoib_enhanced | bool %} MTU=65520 CONNECTED_MODE=yes {% endif %}