assemble module: Adds an extra line if the delimiter parameter is set to "\n" #44739
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
files
Files category
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
I want to add a new line between my fragments. For this, I set the
delimiter
parameter to '/n"', but I got two lines between the fragments. In case I omit thedelimiter
parameter my fragments are combined without any delimiterISSUE TYPE
COMPONENT NAME
assemble
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Host: Linux Mint 19,
Target: same
STEPS TO REPRODUCE
Minimal test-case repository: https://github.com/in-in/assemble_module_test
EXPECTED RESULTS
.aliases.sh
should look like this:ACTUAL RESULTS
PS. I found that the problem is in my inventory file. More exactly in this line:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
At runtime, it translates to:
ansible_python_interpreter: "python3"
If I change this line to
ansible_python_interpreter: "python2"
, it will prevent the appearance of one extra line in the "assemble" module. But Python2 ruins another part of my configuration (dconf module)The text was updated successfully, but these errors were encountered: