From b0ddb88f13839455d1fc3d406f4b939edf3252ec Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 7 Mar 2019 11:23:07 -0500 Subject: [PATCH] fix non bool path --- lib/ansible/modules/system/debconf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/system/debconf.py b/lib/ansible/modules/system/debconf.py index 1edf6c1ac4..3466e0a92c 100644 --- a/lib/ansible/modules/system/debconf.py +++ b/lib/ansible/modules/system/debconf.py @@ -156,6 +156,9 @@ def main(): if question not in prev: changed = True else: + + existing = prev[question] + # ensure we compare booleans supplied to the way debconf sees them (true/false strings) if vtype == 'boolean': value = to_text(value).lower()