This commit is contained in:
CHIEFSOFT\ameye
2025-01-26 07:52:53 -05:00
parent 7aef227c11
commit 71295d4e89
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#
PARAM1= $1
for a in "$@" ;do
PROVISION_FILE=$a
done
+2 -1
View File
@@ -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));