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

Add user to ansible provisioner

parent 50a5ccac
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ build {
sources = ["source.openstack.image"]
provisioner "ansible" {
user = var.ssh_username
playbook_file = "./ansible/node.yml"
roles_path = "./ansible/roles"
extra_arguments = [
......@@ -31,6 +32,7 @@ build {
}
provisioner "ansible" {
use_proxy = false
user = var.ssh_username
ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
playbook_file = "./CRI_XCBC/ood-packer.yaml"
}
......
......@@ -23,6 +23,7 @@ build {
sources = ["source.openstack.image"]
provisioner "ansible" {
user = var.ssh_username
playbook_file = "./ansible/node.yml"
roles_path = "./ansible/roles"
extra_arguments = [
......
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