param 1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
PARAM1= $1
|
||||
for a in "$@" ;do
|
||||
PROVISION_FILE=$a
|
||||
done
|
||||
|
||||
@@ -251,6 +251,7 @@ class Provision extends BaseController
|
||||
//// Display the list of all files and directories
|
||||
//echo "<pre>$output</pre>";
|
||||
//log_message('critical', "Test poath -> ".$output);
|
||||
//ANSIBLE/templates/A000001.yml
|
||||
|
||||
$mysql = "SELECT id AS plan_id, uid, provision_id, play_file from provision_plans ORDER BY updated ASC LIMIT 1 ";
|
||||
$query = $this->db->query($mysql);
|
||||
@@ -272,7 +273,7 @@ class Provision extends BaseController
|
||||
public function runAnsibleShell($provisionFile){
|
||||
try{
|
||||
log_message('critical', "***** ***** Provision :: runAnsibleShell($provisionFile) ");
|
||||
$shellCommand ="/var/www/html/ANSIBLE/auto_play.sh /var/www/html/ANSIBLE/$provisionFile";
|
||||
$shellCommand ="/var/www/html/ANSIBLE/auto_play.sh A000001.yml OLU AMEYE "; ///var/www/html/ANSIBLE/$provisionFile";
|
||||
log_message('critical', $shellCommand);
|
||||
$output = shell_exec($shellCommand );
|
||||
log_message('critical', "***** ***** Provision :: runAnsibleShell(output) AFTER SHELL RUN ".serialize($output));
|
||||
|
||||
Reference in New Issue
Block a user