class ForemanAnsible::Engine

This engine connects ForemanAnsible with Foreman core

Dependencies related with the remote execution plugin

Public Class Methods

register_rex_feature() click to toggle source
# File lib/foreman_ansible/remote_execution.rb, line 15
def self.register_rex_feature
  RemoteExecutionFeature.register(
    :ansible_run_host,
    N_('Ansible: Run host roles'),
    :description => N_('Runs an Ansible playbook which contains all'                            ' the roles defined for a host')
  )
  RemoteExecutionFeature.register(
    :ansible_run_insights_plan,
    N_('Ansible: Run Insights maintenance plan'),
    :description => N_('Runs a given maintenance plan from Red Hat '                            'Access Insights given an ID.'),
    :provided_inputs => %w[organization_id plan_id],
    :notification_builder => ForemanAnsible::InsightsNotificationBuilder
  )
end