from_yaml filter failure on focal

Bug #1880226 reported by Alexey Bazhin
6
This bug affects 1 person
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')|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)

Revision history for this message
Alexey Bazhin (baz-irc) wrote :
Revision history for this message
Alexey Bazhin (baz-irc) wrote :

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

Revision history for this message
Alexey Bazhin (baz-irc) wrote :

Clean focal install doesn't have the problem. Installing saltstack from their official repo breaks ansible. Closing the ticket.

Changed in ansible (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.