Ansibel token

This commit is contained in:
CHIEFSOFT\ameye
2025-09-24 15:49:45 -04:00
parent f55283c1b8
commit 8e0697eda9
3 changed files with 9 additions and 3 deletions
+4
View File
@@ -108,6 +108,10 @@ abstract class BaseController extends Controller
public function ansibleLogin(): string
{
$token = null;
if (isset($_ENV['ANSIBLE_LOGIN_TOKEN']) && $_ENV['ANSIBLE_LOGIN_TOKEN'] !=''){
return $_ENV['ANSIBLE_LOGIN_TOKEN'];
}
try {
// Code that might throw an exception
$result = "Unhandled exception";