Module: ForemanAnsible::HostsHelperExtensions::Overrides
- Defined in:
- app/helpers/foreman_ansible/hosts_helper_extensions.rb
Instance Method Summary collapse
Instance Method Details
#multiple_actions ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/foreman_ansible/hosts_helper_extensions.rb', line 9 def multiple_actions actions = super if User.current.can?(:create_job_invocations) && User.current.can?(:play_roles_on_host) actions += [[_('Run all Ansible roles'), multiple_play_roles_hosts_path, false]] end actions end |