Don't list duplicate hosts

This commit is contained in:
Tobias Bühlmann
2023-03-09 16:46:57 +01:00
parent 3026a92c98
commit e178907a21
2 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ class Mrsk::Configuration
def all_hosts
roles.flat_map(&:hosts)
roles.flat_map(&:hosts).uniq
end
def primary_web_host
@@ -72,7 +72,7 @@ class Mrsk::Configuration
end
def traefik_hosts
roles.select(&:running_traefik?).flat_map(&:hosts)
roles.select(&:running_traefik?).flat_map(&:hosts).uniq
end