Consider e.g. ansible.builtin.stat vs ansible.windows.win_stat.
The former will fail with a pretty esoteric error if it’s trying to run on a Windows host.
Presumably ansible-playbook has enough information to know that it won’t work?
Consider e.g. ansible.builtin.stat vs ansible.windows.win_stat.
The former will fail with a pretty esoteric error if it’s trying to run on a Windows host.
Presumably ansible-playbook has enough information to know that it won’t work?
If you gather_facts (which is true by default) then yes, the system is “aware” of which OS a target is running.
Argh, but the galaxy.yml doesn’t have a field for OS support.
There are many problems with trying to do this
.py modules may work or future support might be enabled for running on different platformsAll in all it’s a difficult problem, the best we can do right now is make sure the documentation reflects what platforms the module can run on.