Skip to content

Commit

Permalink
fix(cloudflare): fix Ansible vars file when Cloudflare is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
timoa committed May 29, 2022
1 parent a34b86c commit 6b2267b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/install.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ resource "local_file" "ansible_variables" {
volume_chap_password = oci_core_volume_attachment.volume_attachment.chap_secret
volume_device_name = var.block_volume_device_name
vscode_version = var.vscode_version
cf_account_id = var.cf_account_id
cf_tunnel_id = cloudflare_argo_tunnel.cf_tunnel[0].id != null ? cloudflare_argo_tunnel.cf_tunnel[0].id : ""
cf_tunnel_name = local.cf_tunnel_name
cf_tunnel_secret = local.cf_argo_secret
cf_zone = local.cf_cname != null ? local.cf_cname : ""
cf_account_id = var.cf_zero_trust_enabled ? var.cf_account_id : ""
cf_tunnel_id = var.cf_zero_trust_enabled ? cloudflare_argo_tunnel.cf_tunnel[0].id : ""
cf_tunnel_name = var.cf_zero_trust_enabled ? local.cf_tunnel_name : ""
cf_tunnel_secret = var.cf_zero_trust_enabled ? local.cf_argo_secret : ""
cf_zone = var.cf_zero_trust_enabled ? local.cf_cname : ""
})
filename = "${path.root}/../ansible/group_vars/server/all.yml"
}
Expand Down

0 comments on commit 6b2267b

Please sign in to comment.