On 2016-02-13 20:42, [email protected] wrote: --- %< --- > <?php > > > chdir('/home/ansible/ansible'); > $output = shell_exec('pwd'); > echo "<pre>$output</pre>"; > shell_exec('ansible-playbook si-report-api-count.yml -i production'); > > $output = shell_exec('cat /tmp/log'); > echo "<pre>$output</pre>"; > > ?> > > When I run this, it doesnt run the playbook. Im suspecting that the apache > user cant do that. It is not even switching over to the ansible directory. > > Any ideas?
Search the net for inspiration: http://stackoverflow.com/questions/5882650/how-to-execute-a-shell-script-in-php use sudoers, check php.ini Regards Benjamin -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/56C243BF.4010801%40uni-jena.de. For more options, visit https://groups.google.com/d/optout.
