From: David Galloway Date: Thu, 28 May 2020 16:45:22 +0000 (-0400) Subject: dhcp-server: firewalld_cmd.msg has to be defined to be evaluated X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F575%2Fhead;p=ceph-cm-ansible.git dhcp-server: firewalld_cmd.msg has to be defined to be evaluated Signed-off-by: David Galloway --- diff --git a/roles/dhcp-server/tasks/main.yml b/roles/dhcp-server/tasks/main.yml index 2c9f9f46..97271654 100644 --- a/roles/dhcp-server/tasks/main.yml +++ b/roles/dhcp-server/tasks/main.yml @@ -22,7 +22,7 @@ enabled: yes when: - iptables_state.rc != 0 - - "'No such file or directory' not in firewalld_state.msg" + - not (firewalld_state.msg is defined and "'No such file or directory' in firewalld_state.msg") - name: Configure firewalld firewalld: @@ -32,7 +32,7 @@ immediate: yes when: - iptables_state.rc != 0 - - "'No such file or directory' not in firewalld_state.msg" + - not (firewalld_state.msg is defined and "'No such file or directory' in firewalld_state.msg") - name: Write global dhcpd.conf template: