ntp
ntp copied to clipboard
How this script to get the system info and choose the right system yml file.
tasks/main.yml:
- name: Add the OS specific varibles include_vars: "{{ ansible_os_family }}.yml"
How to get system_family_version???? I have no idea.
ansible_os_family is a variable defined via facts. If you run in your host:
ansible localhost -m setup -k -i inventory
you would see all variables available to be used. Your inventory file should have localhost string on it. For my Ubuntu box it sets up to
"ansible_os_family": "Debian"
So it will include Debian.yml
Yeah, I got. THX global :-D