Skip to content

馃悰 Bug : Range inventory not functionnal

Summary

When I use the range inventory from Ludus, I get some errors when I try to use it with the range.

Steps to reproduce

# Get inventory for a range
bob@ludus:~$ ludus range inventory > inventory.yml

# Show inventory contend for a range
bob@ludus:~$ ansible-inventory -i inventory.yml --list

# Use inventory in a range
bob@ludus:~$ ansible bob -m ping -i inventory.yml

Output exemples

# Windows exemple
[WARNING]: No python interpreters found for host workstation1 (tried ['python3.12', 'python3.11', 'python3.10', 'python3.9', 'python3.8', 'python3.7', 'python3.6', '/usr/bin/python3', '/usr/libexec/platform-python', 'python2.7', '/usr/bin/python', 'python'])

# Linux exemple
ubuntu2004 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"
}
Edited by Cro Krodile