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