fix ansible 2.8 bool vars

This commit is contained in:
Robert Kaussow 2019-06-10 16:00:07 +02:00
parent 07507651ce
commit a621920207
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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