/var/www/html/ANSIBLE/
This commit is contained in:
@@ -255,7 +255,7 @@ class Provision extends BaseController
|
||||
public function runAnsibleShell($provisionFile){
|
||||
try{
|
||||
log_message('critical', "***** ***** Provision :: runAnsibleShell($provisionFile) ");
|
||||
$shellCommand ="ansible-playbook --vault-password-file secrets.pass --key-file ~/.ssh/ansible_worker -i inventory $provisionFile";
|
||||
$shellCommand ="ansible-playbook --vault-password-file /var/www/html/ANSIBLE/secrets.pass --key-file ~/.ssh/ansible_worker -i /var/www/html/ANSIBLE/inventory $provisionFile";
|
||||
log_message('critical', $shellCommand);
|
||||
|
||||
$output = shell_exec($shellCommand );
|
||||
|
||||
Reference in New Issue
Block a user