Skip to content

Commit

Permalink
fix: Apply correct filters to booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
btravouillon committed Aug 4, 2022
1 parent ff6dcf5 commit 24127b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/configure-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion templates/ifcfg-ib.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 24127b7

Please sign in to comment.