From 3a3a63ce46a5c98b3759698a1658b1102d1b44ad Mon Sep 17 00:00:00 2001 From: Rowin Andruscavage Date: Thu, 30 Nov 2017 00:07:11 -0800 Subject: [PATCH] Update debconf example (#33397) 'true' needs to be quoted as a string, otherwise it is stored as boolean and ends up getting capitalized to 'True' when presented to debconf Subsequent install of oracle-java8-installer fails with "oracle-license-v1-1 license could not be presented" ansible version: 2.3.1.0 Actual: value: true debconf-show oracle-java8-installer * shared/accepted-oracle-license-v1-1: True Expected: value: 'true' debconf-show oracle-java8-installer * shared/accepted-oracle-license-v1-1: true --- lib/ansible/modules/system/debconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/debconf.py b/lib/ansible/modules/system/debconf.py index 71013c373c1..1bdd49aab47 100644 --- a/lib/ansible/modules/system/debconf.py +++ b/lib/ansible/modules/system/debconf.py @@ -73,7 +73,7 @@ EXAMPLES = ''' debconf: name: oracle-java7-installer question: shared/accepted-oracle-license-v1-1 - value: true + value: 'true' vtype: select - name: Specifying package you can register/return the list of questions and current values