From 04c93bab7f600a8c3c4f1b3fa59d7ca5fbea38d0 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 12 May 2020 09:56:17 +0100 Subject: [PATCH] Facts are strings so make this explicit This patch fixes the following ansible warning: [WARNING]: The value True (type bool) in a string field was converted to u'True' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. Change-Id: I06cee8173aaf79c2a1bd288fa1a813117ab2b319 --- tasks/python_venv_set_facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/python_venv_set_facts.yml b/tasks/python_venv_set_facts.yml index 78c78b6..df9b761 100644 --- a/tasks/python_venv_set_facts.yml +++ b/tasks/python_venv_set_facts.yml @@ -23,7 +23,7 @@ dest: "/etc/ansible/facts.d/{{ venv_facts_dest }}.fact" section: "{{ item.section }}" option: "{{ item.option }}" - value: "{{ item.value }}" + value: "{{ item.value | string }}" with_items: "{{ venv_facts_when_changed }}" when: - venv_facts_when_changed != []