Pass role names for simplicity

This commit is contained in:
Tobias Bühlmann
2023-03-10 09:18:47 +01:00
parent fdb0c8ee91
commit 7d4dfc4c86
3 changed files with 24 additions and 24 deletions

View File

@@ -45,7 +45,7 @@ class Mrsk::Commander
end
def roles_on(host)
roles.select { |role| role.hosts.include?(host.to_s) }
roles.select { |role| role.hosts.include?(host.to_s) }.map(&:name)
end
def traefik_hosts