fatal: [s1]: FAILED! => {"msg": "Unable to automatically determine host network os. Please manually configure ansible_network_os value for this host"}

Hello Everyone!

I have been trying to run the below play book , I keep getting different kinds of errors whenever I try to change the syntax, I am guessing the errors are due to deprecated syntax. Can some one tell me the mistake I am making.

Let's not have us guess as well.
Instead tell exactly what "different kinds of errors" you get, from
which commands, and with which syntax.
Then we might be able to help....