From edaf560a407f1d02094494c242989626209aa25d Mon Sep 17 00:00:00 2001 From: Denise Unterwurzacher Date: Thu, 21 Jan 2021 12:35:40 -0600 Subject: [PATCH] ITPLAT-428 Need to specify `| bool` to ensure the value is read as a boolean. This was warned about in previous versions: "[DEPRECATION WARNING]: evaluating false as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. This feature will be removed in version 2.12." Perhaps it was removed earlier. Handled both deprecation warnings found in previous runs. --- roles/product_install/tasks/main.yml | 2 +- roles/product_startup/handlers/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/product_install/tasks/main.yml b/roles/product_install/tasks/main.yml index e2773c1..6d68992 100644 --- a/roles/product_install/tasks/main.yml +++ b/roles/product_install/tasks/main.yml @@ -269,4 +269,4 @@ include_tasks: "jira-servicedesk_as_obr.yml" when: - atl_install_jsd_as_obr is defined - - atl_install_jsd_as_obr + - atl_install_jsd_as_obr | bool diff --git a/roles/product_startup/handlers/main.yml b/roles/product_startup/handlers/main.yml index 6e9e1d8..75a567a 100644 --- a/roles/product_startup/handlers/main.yml +++ b/roles/product_startup/handlers/main.yml @@ -4,7 +4,7 @@ service: name: "{{ atl_systemd_service_name }}" state: restarted - when: atl_startup_restart + when: atl_startup_restart | bool no_log: true - name: Enable Product