inshbouddah
This commit is contained in:
		@@ -38,7 +38,23 @@ module "compute" {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module "iam" {
 | 
			
		||||
  source = "../../modules/iam"
 | 
			
		||||
 | 
			
		||||
  source     = "../../modules/iam"
 | 
			
		||||
  project_id = var.project_id
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
data "google_client_openid_userinfo" "me" {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
resource "local_file" "ansible_config" {
 | 
			
		||||
  content = templatefile("${path.module}/../../templates/ansible.cfg.tpl",
 | 
			
		||||
    {
 | 
			
		||||
      remote_user = data.google_client_openid_userinfo.me.email
 | 
			
		||||
    }
 | 
			
		||||
  )
 | 
			
		||||
  filename = "../../ansible/ansible.cfg"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
resource "local_file" "service_account" {
 | 
			
		||||
  content  = base64decode(module.iam.service_account_key)
 | 
			
		||||
  filename = "../../ansible/service_account.json"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user