Public bug reported:
1. Create file "test.yaml" with content "test: true"
2. Create local playbook "playbook.yaml"
- hosts: localhost
connection: local
gather_facts: no
tasks:
- debug:
msg: "{{ lookup('file', 'test.yaml')|from_yaml }}"
3. Run playbook
ansible-playbook playbook.yaml
Error is:
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error
occurred on ({{ lookup('file', 'test.yaml')|from_yaml }}): a string or
stream input is required"}
On eoan this works fine.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ansible 2.9.6+dfsg-1
ProcVersionSignature: Ubuntu 5.4.0-31.35-generic 5.4.34
Uname: Linux 5.4.0-31-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: X-Cinnamon
Date: Fri May 22 21:41:05 2020
PackageArchitecture: all
SourcePackage: ansible
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: ansible (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1880226
Title:
from_yaml filter failure on focal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1880226/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs