Executing a command remotely using ansible

25 views
Skip to first unread message

Akash John

unread,
Mar 2, 2016, 9:40:53 AM3/2/16
to Ansible Project
Hi Team,

I would like to execute a command on a remote windows host as we are performing on Linux Machines ansible webserver -s -m shell -a "/etc/init.d/httpd status" -u user1 -k  

Some could you please help me how can we execute the command on Windows remote host. Most probably we need to find a module to replace shell on the above mentioned command line. 

Could you please guide me how can we achieve this?

Thanks,
Akash John 

Jeff L

unread,
Mar 2, 2016, 9:58:44 AM3/2/16
to Ansible Project

Akash John

unread,
Mar 2, 2016, 11:01:15 AM3/2/16
to Ansible Project
Hi Jeff, yes but i think there we cannot find the similar method as i shared earlier for linux. Could you please guide me if I missed anything on that page?
Reply all
Reply to author
Forward
0 new messages