I am trying to get the OS family of my host machine using ansible. This is the command I use.
ansible my-host -i hosts.ini -m setup | grep ansible_os_family
This is what my host file looks like.
[my-host] myhostvm.com ansible_ssh_pass=mypw ansible_ssh_user=root
I however get this message:
"ansible_os_family": "NA",
I try to run this as well.
ansible my-host -i hosts.ini -m setup | grep ansible_distribution
This is the result:
"ansible_distribution": "NA", "ansible_distribution_major_version": "NA", "ansible_distribution_release": "NA", "ansible_distribution_version": "NA",
Can someone explain to me why it doesn't return any OS family?