Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question