Skip to content

Commit

Permalink
fix: specify ansible config path explicitly with ANSIBLE_CONFIG
Browse files Browse the repository at this point in the history
Signed-off-by: ludo <controlplane@spiarh.fr>
  • Loading branch information
spiarh committed Jan 5, 2024
1 parent 53a95e6 commit 453c5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/workspaces/simulator/admin_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "local_file" "ansible_inventory" {

resource "null_resource" "admin_ssh_known_hosts" {
provisioner "local-exec" {
command = format("ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook %s", local.ansible_playbook_update_known_hosts)
command = format("ANSIBLE_HOST_KEY_CHECKING=False ANSIBLE_CONFIG=/simulator/config/admin/ansible.cfg ansible-playbook %s", local.ansible_playbook_update_known_hosts)
working_dir = var.admin_bundle_dir
}

Expand Down

0 comments on commit 453c5be

Please sign in to comment.