The firewalld_enabled variable isn't always defined.

This commit is contained in:
Andrea Dell'Amico 2020-08-11 16:41:58 +02:00
parent 4cd12ae29d
commit 947ee4dbc4
1 changed files with 2 additions and 2 deletions

View File

@ -11,14 +11,14 @@
with_items: '{{ letsencrypt_acme_sh_domains }}'
when:
- item.standalone is defined
- firewalld_enabled
- firewalld_enabled is defined and firewalld_enabled
- letsencrypt_firewalld_http_enabled_on_default_zone
- name: Custom firewalld rule for http
firewalld: service={{ item.service}} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
with_items: '{{ letsencrypt_firewalld_services }}'
when:
- firewalld_enabled
- firewalld_enabled is defined and firewalld_enabled
- not letsencrypt_firewalld_http_enabled_on_default_zone
tags: [ 'letsencrypt', 'letsencrypt_acme_sh' ]