From a6219202072f64ba34afceb195007ec6a0b3433a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 10 Jun 2019 16:00:07 +0200 Subject: [PATCH] fix ansible 2.8 bool vars --- tasks/config.yml | 2 +- tasks/install.yml | 2 +- tasks/main.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/config.yml b/tasks/config.yml index eb18a8d..59f0e12 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -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 diff --git a/tasks/install.yml b/tasks/install.yml index 113beee..dd8cd49 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index c527746..1b87670 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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