$_ENV['ANSIBLE_TEMPLATE_ID']

This commit is contained in:
CHIEFSOFT\ameye
2025-09-24 17:34:38 -04:00
parent 379c670e7f
commit a4bee6cf0c
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -13,6 +13,7 @@ DESTINATION_HOME_FOLDER='/home/chiefsoft/SITES/'
# ANSIBLE PATHS *********************************************
ANSIBLE_LOGIN_TOKEN=''
ANSIBLE_TEMPLATE_ID='2'
ANSIBLE_AUTOMATION_SERVER_LOCATION="http://172.16.4.90:3000"
ANSIBLE_LOGIN_URL="/api/auth/login"
ANSIBLE_TOKEN_URL="/api/user/tokens"
+1
View File
@@ -14,6 +14,7 @@ DESTINATION_HOME_FOLDER='/home/chiefsoft/SITES/'
# ANSIBLE PATHS *********************************************
ANSIBLE_LOGIN_TOKEN="ghp5vseetodryrav77b8kfh6azuwwr-hxiky-qc3bue="
ANSIBLE_TEMPLATE_ID='1'
ANSIBLE_AUTOMATION_SERVER_LOCATION="http://10.13.2.18:3000"
ANSIBLE_LOGIN_URL="/api/auth/login"
ANSIBLE_TOKEN_URL="/api/user/tokens"
+2 -2
View File
@@ -373,7 +373,7 @@ class Provision extends BaseController
$this->db->query("UPDATE provision_plans SET updated = now() WHERE id = $planId");
// $this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
$params = [
"template_id" => 2,
"template_id" => $_ENV['ANSIBLE_TEMPLATE_ID'],
"debug" => false,
"dry_run" => false,
"playbook" => $playbook,
@@ -743,7 +743,7 @@ class Provision extends BaseController
$this->db->query("UPDATE provision_plans SET updated = now() WHERE id = $planId");
$this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
$params = [
"template_id" => 2,
"template_id" => $_ENV['ANSIBLE_TEMPLATE_ID'],
"debug" => false,
"dry_run" => false,
"playbook" => $playbook,