Ansible setup warning

I couldn’t see if another topic on this was created so I figured I would add another one…

I am going through the getting starrted ansible series and get a warning when doing the ping command, then it pings the 2 servers I have set up.

[WARNING]: Platform linux on host asus-laptop is using the discovered Python interpreter at /usr/bin/python3,
but future installation of another Python interpreter could change the meaning of that path. See
https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information.
asus-laptop | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"
}
74.91.116.168 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"

I found adding

[py3-hosts]
asus-laptop

[py3-hosts:vars]
ansible_python_interpreter=/usr/bin/python3

to the inventory kinda worked, but I get this now
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

Hope I am posting this correctly :slight_smile:

I figured it mostly out, I had a - in the [py3-hosts] and the [py3-hosts:vars] should have been an underscore (bah, syntax stuff lol)
now everything seems to wok except the laptop that I have pop-os installed I get this

asus-laptop | SUCCESS => {
    "cache_update_time": 1628747073,
    "cache_updated": false,
    "changed": false

the other hosts say true