$_ENV['ANSIBLE_TEMPLATE_ID']
This commit is contained in:
@@ -13,6 +13,7 @@ DESTINATION_HOME_FOLDER='/home/chiefsoft/SITES/'
|
|||||||
|
|
||||||
# ANSIBLE PATHS *********************************************
|
# ANSIBLE PATHS *********************************************
|
||||||
ANSIBLE_LOGIN_TOKEN=''
|
ANSIBLE_LOGIN_TOKEN=''
|
||||||
|
ANSIBLE_TEMPLATE_ID='2'
|
||||||
ANSIBLE_AUTOMATION_SERVER_LOCATION="http://172.16.4.90:3000"
|
ANSIBLE_AUTOMATION_SERVER_LOCATION="http://172.16.4.90:3000"
|
||||||
ANSIBLE_LOGIN_URL="/api/auth/login"
|
ANSIBLE_LOGIN_URL="/api/auth/login"
|
||||||
ANSIBLE_TOKEN_URL="/api/user/tokens"
|
ANSIBLE_TOKEN_URL="/api/user/tokens"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ DESTINATION_HOME_FOLDER='/home/chiefsoft/SITES/'
|
|||||||
|
|
||||||
# ANSIBLE PATHS *********************************************
|
# ANSIBLE PATHS *********************************************
|
||||||
ANSIBLE_LOGIN_TOKEN="ghp5vseetodryrav77b8kfh6azuwwr-hxiky-qc3bue="
|
ANSIBLE_LOGIN_TOKEN="ghp5vseetodryrav77b8kfh6azuwwr-hxiky-qc3bue="
|
||||||
|
ANSIBLE_TEMPLATE_ID='1'
|
||||||
ANSIBLE_AUTOMATION_SERVER_LOCATION="http://10.13.2.18:3000"
|
ANSIBLE_AUTOMATION_SERVER_LOCATION="http://10.13.2.18:3000"
|
||||||
ANSIBLE_LOGIN_URL="/api/auth/login"
|
ANSIBLE_LOGIN_URL="/api/auth/login"
|
||||||
ANSIBLE_TOKEN_URL="/api/user/tokens"
|
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 provision_plans SET updated = now() WHERE id = $planId");
|
||||||
// $this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
|
// $this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
|
||||||
$params = [
|
$params = [
|
||||||
"template_id" => 2,
|
"template_id" => $_ENV['ANSIBLE_TEMPLATE_ID'],
|
||||||
"debug" => false,
|
"debug" => false,
|
||||||
"dry_run" => false,
|
"dry_run" => false,
|
||||||
"playbook" => $playbook,
|
"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 provision_plans SET updated = now() WHERE id = $planId");
|
||||||
$this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
|
$this->db->query("UPDATE members_products SET p_file = p_file + 1 WHERE id = $provisionId");
|
||||||
$params = [
|
$params = [
|
||||||
"template_id" => 2,
|
"template_id" => $_ENV['ANSIBLE_TEMPLATE_ID'],
|
||||||
"debug" => false,
|
"debug" => false,
|
||||||
"dry_run" => false,
|
"dry_run" => false,
|
||||||
"playbook" => $playbook,
|
"playbook" => $playbook,
|
||||||
|
|||||||
Reference in New Issue
Block a user