$_ENV['ANSIBLE_TEMPLATE_ID']
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user