Config Template doesn't respect variable names sections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-ansible |
New
|
High
|
Kevin Carter |
Bug Description
More information here:
https:/
Config Template will create duplicate sections if the override contains a section header that is a variable name. For example, using the following playbook and template file:
# cat playbooks/
#This is my test file
[{{ ansible_hostname }}]
a = 1
b = 2
c = 3
# cat playbooks/test.yml
---
- name: test playbook
hosts: localhost
connection: local
gather_facts: true
tasks:
- config_template:
src: "templates/
dest: "/opt/test.file"
vars:
my_overrides:
"{{ ansible_hostname }}":
d: 4
e: 5
a: 3
# cat /opt/test.file
#This is my test file
[ubuntu]
a = 1
b = 2
c = 3
[ubuntu]
a = 3
d = 4
e = 5
Changed in openstack-ansible: | |
importance: | Undecided → High |
assignee: | nobody → Kevin Carter (kevin-carter) |