Public bug reported:

Version of ansible 2.5.1 has a nasty bug. Following playbook will show
foo == [3], when every other version of ansible (including 2.5.0 and
2.5.3, 2.4 and 2.6) show that foo == [1,2,3].

Please, upload a newer minor version of ansible.

Playbook in question:

 - hosts: localhost
   tasks:
     - set_fact:
         foo: []
     - set_fact:
         foo: '{{ foo + [item] }}'
       with_items: [1, 2, 3]
     - debug: var=foo

Affected version: 2.5.1+dfsg-1

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ansible 2.5.1+dfsg-1
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Thu Jul  5 17:03:46 2018
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-xenial-amd64-20160624-2
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-06-22 (378 days ago)
InstallationMedia: Ubuntu 16.04 "Xenial" - Build amd64 LIVE Binary 
20160624-10:47
PackageArchitecture: all
SourcePackage: ansible
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.ansible.ansible.cfg: [modified]
mtime.conffile..etc.ansible.ansible.cfg: 2018-04-05T15:38:10.672150

** Affects: ansible (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1780278

Title:
  ansible 2.5.1 need upgrade to 2.5.2 or 2.5.3 (bug with set_facts)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1780278/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to