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()