fix ansible 2.8 bool vars
This commit is contained in:
parent
07507651ce
commit
a621920207
@ -39,7 +39,7 @@
|
||||
group: root
|
||||
mode: 0600
|
||||
when:
|
||||
- mosquitto_acl_enabled
|
||||
- mosquitto_acl_enabled | bool
|
||||
- mosquitto_acl is defined
|
||||
notify: __mosquitto_restart
|
||||
become: True
|
||||
|
@ -32,6 +32,6 @@
|
||||
name: allow_mosquitto_port
|
||||
state: present
|
||||
rules: '-A INPUT -m state --state NEW -p tcp --dport {{ mosquitto_port }} -j ACCEPT'
|
||||
when: mosquitto_iptables_enabled
|
||||
when: mosquitto_iptables_enabled | bool
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -2,6 +2,6 @@
|
||||
- import_tasks: install.yml
|
||||
- import_tasks: config.yml
|
||||
- import_tasks: tls.yml
|
||||
when: mosquitto_tls_enabled
|
||||
when: mosquitto_tls_enabled | bool
|
||||
tags: tls_renewal
|
||||
- import_tasks: post_tasks.yml
|
||||
|
Loading…
Reference in New Issue
Block a user