T
T
twid2017-01-16 19:24:36
Windows
twid, 2017-01-16 19:24:36

How to set task in ansible for windows only?

how to filter tasks in the spirit of "windows only" in ansible playbook?
the ansible_os_family parameter does not contain such an operating system.
By the way, where can I see the contents of ansible_os_family and ansible_distribution? (I only find them in Google, but I don’t understand where they are registered in ansible on the local machine)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-01-17
@twid

Well, it’s easier to write scripts only for Windows and then you don’t need to filter anything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question