From 0c0230b8cc62ce0f723c86fda02037a62b4fa8c7 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Sat, 10 Jun 2023 20:11:11 +0200 Subject: Remove galaxy variable for ansible repos Merge galaxy variable for ansible repos into visibility since, for now, all publicly visible repositories will be on ansible galaxy. Signed-off-by: Colin Wilk --- terraform/ansible.tf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'terraform/ansible.tf') diff --git a/terraform/ansible.tf b/terraform/ansible.tf index bdcf837..de6206d 100644 --- a/terraform/ansible.tf +++ b/terraform/ansible.tf @@ -16,7 +16,7 @@ resource "github_repository" "ansible" { } resource "github_actions_secret" "example_secret" { - for_each = { for repo in var.repos : repo.name => repo if repo.galaxy } + for_each = { for repo in var.repos : repo.name => repo if repo.visibility == "public" } repository = "ansible-role-${each.value.name}" secret_name = "GALAXY_API_KEY" @@ -30,7 +30,6 @@ variable "repos" { topics = list(string) homepage_url = string visibility = string - galaxy = bool archived = bool })) default = [ @@ -40,7 +39,6 @@ variable "repos" { topics = ["ansible", "role", "galaxy", "prometheus", "monitoring", "metrics", "prometheus-exporter", "node-exporter"] homepage_url = "https://galaxy.ansible.com/kliwniloc/prometheus_target" visibility = "public" - galaxy = true archived = false }, { @@ -49,7 +47,6 @@ variable "repos" { topics = ["ansible", "role", "galaxy", "backup", "borgbackup"] homepage_url = "https://galaxy.ansible.com/kliwniloc/borgbackup" visibility = "private" - galaxy = false archived = false }, ] -- cgit v1.2.3