How to run ansible command in php code but it not working

127 views
Skip to first unread message

Bé Tập Code

unread,
Mar 18, 2015, 8:31:39 AM3/18/15
to ansible...@googlegroups.com
Hi All !
I'm build web ui view and i want to running ansible command with php . for example:
<?php
   $output = system("ansible host -m ping");
?>
But it not working, Please help me. Thanks !

Toshio Kuratomi

unread,
Mar 20, 2015, 10:16:43 AM3/20/15
to ansible...@googlegroups.com

What's happening when you do that?  What happens if you use a different Shell command?  This might end up being more of a php programming question than an ansible question.

-Toshio

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/49467ac6-01c6-449d-b3aa-0f3e20395d01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages