
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
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
---
|
|
# Copyright 2018, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Ensure local facts folder exists
|
|
file:
|
|
path: /etc/ansible/facts.d
|
|
state: directory
|
|
|
|
- name: Record the necessary facts
|
|
ini_file:
|
|
dest: "/etc/ansible/facts.d/{{ venv_facts_dest }}.fact"
|
|
section: "{{ item.section }}"
|
|
option: "{{ item.option }}"
|
|
value: "{{ item.value | string }}"
|
|
with_items: "{{ venv_facts_when_changed }}"
|
|
when:
|
|
- venv_facts_when_changed != []
|
|
- (_install_venv_pip_packages is defined and
|
|
_install_venv_pip_packages is mapping and
|
|
_install_venv_pip_packages is changed)
|