Reputation: 33
I try write yml for different systems.
in ansuble_os_family and ansible_distribution I don't see Windows. how should I write condition for task for windows?
thanks.
Upvotes: 1
Views: 1842
Reputation: 5661
On a windows machine ansible_os_family
should have the value Windows
. If this is not the case in your play, there seems to be some error. Maybe you should retest and make sure, you are actually targeting a windows machine.
Upvotes: 3