ansible 2.5.1 need upgrade to 2.5.2 or 2.5.3 (bug with set_facts)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ansible |
Fix Released
|
Unknown
|
|||
ansible (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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
ProcVersionSign
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
DistributionCha
# This is a distribution channel descriptor
# For more information see http://
canonical-
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-06-22 (378 days ago)
InstallationMedia: Ubuntu 16.04 "Xenial" - Build amd64 LIVE Binary 20160624-10:47
PackageArchitec
SourcePackage: ansible
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Changed in ansible: | |
status: | Unknown → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.