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 %}