Sha256: 60f69027dce1723a8d2edc85b2f70b0aa94344397052e22879dc2bea8f170ab2
Contents?: true
Size: 566 Bytes
Versions: 109
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true module Actions module ForemanAnsible module Helpers # Returns the name of the proxy running the specified action, or Foreman # if it's the one running the action instead. module PlayRolesDescription def running_proxy_name proxy = input.fetch(:host, {})[:proxy_used] proxy ||= input.fetch(:hostgroup, {})[:proxy_used] if [:not_defined, 'Foreman'].include? proxy _('Foreman') else proxy end end end end end end
Version data entries
109 entries across 109 versions & 1 rubygems