Skip to content

Commit

Permalink
Added bool filter to kernel modules load variable in conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
jstruebel committed Sep 10, 2016
1 parent 88f83d5 commit e1ed88e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
state: 'present'
with_flattened: '{{ samba__kernel_modules }}'
when: (('samba' in samba__base_packages) and
(samba__kernel_modules_load is defined and samba__kernel_modules_load ))
(samba__kernel_modules_load|bool))

- name: Ensure kernel modules are loaded on system boot
template:
Expand All @@ -58,7 +58,7 @@
group: 'root'
mode: '0644'
when: (('samba' in samba__base_packages) and
(samba__kernel_modules_load is defined and samba__kernel_modules_load ))
(samba__kernel_modules_load|bool))

- name: Remove legacy entries from /etc/modules
lineinfile:
Expand Down

0 comments on commit e1ed88e

Please sign in to comment.