Skip to content
Snippets Groups Projects
Commit 0e4b4a8d authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Remove ansible_env_vars from templates

parent 48656b26
No related branches found
No related tags found
No related merge requests found
...@@ -26,15 +26,12 @@ build { ...@@ -26,15 +26,12 @@ build {
user = var.ssh_username user = var.ssh_username
groups = ["compute"] groups = ["compute"]
playbook_file = "./ansible/compute.yml" playbook_file = "./ansible/compute.yml"
ansible_env_vars = [
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
roles_path = "./ansible/roles" roles_path = "./ansible/roles"
extra_arguments = [ extra_arguments = [
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'" "--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
] ]
} }
provisioner "ansible" { provisioner "ansible" {
user = var.ssh_username user = var.ssh_username
use_proxy = false use_proxy = false
......
...@@ -27,10 +27,6 @@ build { ...@@ -27,10 +27,6 @@ build {
user = var.ssh_username user = var.ssh_username
groups = ["gpu"] groups = ["gpu"]
playbook_file = "./ansible/gpu.yml" playbook_file = "./ansible/gpu.yml"
ansible_env_vars = [
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
roles_path = "./ansible/roles" roles_path = "./ansible/roles"
extra_arguments = [ extra_arguments = [
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'" "--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
......
...@@ -26,10 +26,6 @@ build { ...@@ -26,10 +26,6 @@ build {
user = var.ssh_username user = var.ssh_username
groups = ["base"] groups = ["base"]
playbook_file = "./ansible/base.yml" playbook_file = "./ansible/base.yml"
ansible_env_vars = [
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
roles_path = "./ansible/roles" roles_path = "./ansible/roles"
extra_arguments = [ extra_arguments = [
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'" "--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment