Skip to content
Snippets Groups Projects
Commit 1993773f authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Move ansible playbooks from shell provisioner to ansible provisioner

parent bd0ebe7b
No related branches found
No related tags found
No related merge requests found
......@@ -56,34 +56,29 @@ build {
]
inline = [
"sudo -E echo 's3_endpoint: $s3_endpoint'",
"sudo -E ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_XCBC/site-build.yaml -b",
"sudo -E ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_Cluster_Monitor/clustermon.yml -b",
# "sudo -E ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_XCBC/site-build.yaml -b",
# "sudo -E ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_Cluster_Monitor/clustermon.yml -b",
]
}
#provisioner "shell" {
# inline = [
# "sudo rm -rf /CRI_XCBC",
# "sudo rm -rf /CRI_Cluster_Monitor",
# ]
# }
# provisioner "ansible" {
# user = var.ssh_username
# groups = ["headnode"]
# playbook_file = "./CRI_XCBC/site-build.yaml"
# extra_arguments = [
# "-b"
# ]
# }
provisioner "ansible" {
use_proxy = false
user = var.ssh_username
groups = ["headnode"]
playbook_file = "./CRI_XCBC/site-build.yaml"
extra_arguments = [
"-b"
]
}
# provisioner "ansible" {
# user = var.ssh_username
# groups = ["headnode"]
# playbook_file = "./CRI_Cluster_Monitor/clustermon.yml"
# extra_arguments = [
# "-b",
# "-v"
# ]
# }
provisioner "ansible" {
use_proxy = false
user = var.ssh_username
groups = ["headnode"]
playbook_file = "./CRI_Cluster_Monitor/clustermon.yml"
ansible_env_vars =[ "ANSIBLE_DEBUG=true", "ANSIBLE_FORCE_COLOR=true"]
extra_arguments = [
"-b",
]
}
}
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