from_yaml filter failure on focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ansible (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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'
3. Run playbook
ansible-playbook playbook.yaml
Error is:
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ lookup('file', 'test.yaml'
On eoan this works fine.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ansible 2.9.6+dfsg-1
ProcVersionSign
Uname: Linux 5.4.0-31-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: X-Cinnamon
Date: Fri May 22 21:41:05 2020
PackageArchitec
SourcePackage: ansible
UpgradeStatus: No upgrade log present (probably fresh install)
I have tried package versions from eoan (ansible, python3-yaml, python3-jinja2) and id didn't helped. So it looks like priblem is with python3.8