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
This commit is contained in:
Jonathan Rosser 2020-05-12 09:56:17 +01:00
parent a50dd18cc1
commit 04c93bab7f

View File

@ -23,7 +23,7 @@
dest: "/etc/ansible/facts.d/{{ venv_facts_dest }}.fact" dest: "/etc/ansible/facts.d/{{ venv_facts_dest }}.fact"
section: "{{ item.section }}" section: "{{ item.section }}"
option: "{{ item.option }}" option: "{{ item.option }}"
value: "{{ item.value }}" value: "{{ item.value | string }}"
with_items: "{{ venv_facts_when_changed }}" with_items: "{{ venv_facts_when_changed }}"
when: when:
- venv_facts_when_changed != [] - venv_facts_when_changed != []