Skip to content

Commit

Permalink
Case insensitive comparison for firewalld (#12)
Browse files Browse the repository at this point in the history
Case insensitive comparison for firewalld. This causes errors on systems like C7 and the like.
  • Loading branch information
gjedeer authored and jloh committed Dec 28, 2016
1 parent e6ac719 commit cea3501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
service: name=firewalld state=stopped enabled=no
register: disable_firewalld
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'"
failed_when: "disable_firewalld|failed and 'could not find' not in disable_firewalld.msg"
failed_when: "disable_firewalld|failed and 'could not find' not in disable_firewalld.msg.lower()"

# ifconfig (net-tools) needs to be installed for CSF to work properly in CentOS7
- name: install package net-tools [RedHat]
Expand Down

0 comments on commit cea3501

Please sign in to comment.