From 286f56520114606dfe350b1c2786040c591bdff8 Mon Sep 17 00:00:00 2001 From: Harri Kiiskinen <36946534+harrikoo@users.noreply.github.com> Date: Thu, 16 Apr 2020 12:09:40 +0300 Subject: [PATCH] Fix test syntax According to https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#test-syntax The correct form form tests is as suggested; the old way of using filter syntax produces error in Ansible 2.9 (at least). --- tasks/console_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/console_install.yml b/tasks/console_install.yml index da49bd9..cde7131 100644 --- a/tasks/console_install.yml +++ b/tasks/console_install.yml @@ -15,7 +15,7 @@ target: "{{ webserver_document_root }}/matomo.sql" state: import ignore_errors: yes - when: motomo_sql_dump_create | changed + when: motomo_sql_dump_create is changed # create config.ini.php with default settings - name: Create config.ini.php @@ -26,4 +26,4 @@ group: "{{ matomo_user }}" mode: 0664 force: no - register: motomo_config_create \ No newline at end of file + register: motomo_config_create