The firewalld_enabled variable isn't always defined.
This commit is contained in:
parent
4cd12ae29d
commit
947ee4dbc4
|
@ -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' ]
|
||||
|
|
Loading…
Reference in New Issue