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.