Skip to content

ansible_distribution is undefined #2

Description

@danieleperera

Hey I'm trying to install streamio on

Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal

When I ran the following code
ansible-playbook -i inventories/development/hosts.ini phishyme.yml --ask-become-pass --ask-vault-pass
I get this error:
{"msg": "'ansible_distribution' is undefined"}

I also did some research and found this blog post:
https://www.claudiokuenzler.com/blog/989/ansible-linux-distribution-release-discovery-handle-ubuntu-20.04

So it seems that on ubuntu-20.04 ansible_distribution var is no longer available and it is replaced and following variables nested under ansible_lsb could be found to determine the distribution and release.

However, I could not get it to work. Have you got any suggestions? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions