Don't list duplicate hosts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user