Provision actions
This commit is contained in:
@@ -206,4 +206,14 @@ class Provision extends BaseController
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function runAnsibleShell(){
|
||||||
|
try{
|
||||||
|
$output = shell_exec('ansible-playbook --ask-become-pass --key-file ~/.ssh/ansible_worker -i inventory 94099_devprov_mermsemr_com.yml');
|
||||||
|
log_message('critical', "***** ***** Provision :: runAnsibleShell(output) ".$output);
|
||||||
|
} catch ( \Exception $e){
|
||||||
|
log_message('critical', "***** ***** Provision Error:: runAnsibleShell() ".$e->getMessage());
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user