Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit cea3501

Browse files
gjedeerjloh
authored andcommitted
Case insensitive comparison for firewalld (#12)
Case insensitive comparison for firewalld. This causes errors on systems like C7 and the like.
1 parent e6ac719 commit cea3501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
service: name=firewalld state=stopped enabled=no
5353
register: disable_firewalld
5454
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'"
55-
failed_when: "disable_firewalld|failed and 'could not find' not in disable_firewalld.msg"
55+
failed_when: "disable_firewalld|failed and 'could not find' not in disable_firewalld.msg.lower()"
5656

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

0 commit comments

Comments
 (0)