Open igorfraa opened 3 years ago
Does anybody have an idea of a possible cause of this bug?
I have looked into Ansible sources and parameter parsing/substitution appears simple and straightforward. I do not think that bug could resist in vanilla Ansible itself.
At first glance I'm not sure what could be going on here. Please try one of the latest Mitogen releases to see if the issue still persists:
v0.2.10rc1
for Ansible < 2.10
v0.3.0rc1
for Ansible 2.10+
With ansible.builtin.template sometimes "foo.bar/foo.bar.j2" (file in directory) is created instead of "foo.bar" plain file.
I was able to reproduce it three times in two different tasks of a somewhat large execution (36 plays with some hundred tasks). It took about 10 tries. On the next day I was not able to reproduce the issue in 30 tries.
I was not able to reproduce it when execution was limited using tags to just a failing task in 200 tries.
Ansible version is 2.9.15 from PyPi, no custom modules, Mitogen 0.2.9
Have you tried the latest master version from Git? No. I'm unsure I could easily reproduce the issue.
Do you have some idea of what the underlying problem may be? It looks a configuration variable with target path is evaluated wrongly.
Mention your host and target OS and versions Ubuntu 18.04.5 with latest updates (local connection). Python 3.6.9
Example failing task:
Log for a task: mitogen-cleaned.log