bennojoy / ntp

ansible role ntp
28 stars 102 forks source link

How this script to get the system info and choose the right system yml file. #17

Open BrunoJu opened 7 years ago

BrunoJu commented 7 years ago

tasks/main.yml:

How to get system_family_version???? I have no idea.

global commented 7 years ago

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

BrunoJu commented 7 years ago

Yeah, I got. THX global :-D