Closed ZeiP closed 7 years ago
@ansible ping, this issue is waiting for your response. click here for bot help
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.
This issue was moved to ansible/ansible#19177
ISSUE TYPE
COMPONENT NAME
set_facts
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Fedora 25
SUMMARY
When using a set_facts task with with_items to loop through a list and create a new list, the last item handled is not templated properly which makes the list unusable.
STEPS TO REPRODUCE
EXPECTED RESULTS
[ { 'listen': "8080 default_server", 'server_name': "example.org", 'root': "/srv/www/example.org/current", 'index': "index.php" }, { 'listen': "8080 default_server", 'server_name': "example.org", 'root': "/srv/www/example.org/current", 'index': "index.php" } , { 'listen': "8080 default_server", 'server_name': "example.org", 'root': "/srv/www/example.org/current", 'index': "index.php" } ]
ACTUAL RESULTS