From 47cf9f453a3915e6f098d5b893c9e74dfdca8077 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 8 Mar 2018 16:51:08 -0500 Subject: [PATCH] Treat enable_debug in Ansible as a bool Without the extra bool this when block gets evaluated as a string. Given that it is always present this means enable_debug has been enabled regardless of the end user setting. Change-Id: I9f53f3bca4a6862966e558ea20fe001eabda7bcf Closes-bug: #1754481 (cherry picked from commit d87325990cac08f13991fee38bb993296b594b34) --- common/deploy-steps-tasks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/deploy-steps-tasks.yaml b/common/deploy-steps-tasks.yaml index a628873fc6..19b9aa020f 100644 --- a/common/deploy-steps-tasks.yaml +++ b/common/deploy-steps-tasks.yaml @@ -134,7 +134,7 @@ - name: Set host puppet debugging fact string set_fact: host_puppet_config_debug: "--debug --verbose" - when: enable_debug|default(false) + when: enable_debug|default(false)|bool - name: Write the config_step hieradata copy: content="{{dict(step=step|int)|to_json}}" dest=/etc/puppet/hieradata/config_step.json force=true mode=0600 become: true