Description of problem: After the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1934110 went in (in 6.10), it's not possible to upload reports to Satellite for cloned roles. The option to set a cloned role in "Administer -> Remote Execution Features -> ansible_run_host" is not valid since only one role (cloned or not) would have that "ability", so it would be better to add a flag to every job template to enable it (that way it could be inherited or not when cloned). Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Clone: "Ansible Roles - Ansible Default" template [1] 2. Run: the new template 3. "WARNING: Callback disabled by environment. Disabling the Foreman callback plugin" Actual results: Foreman callback plugin is not enabled and report is not uploaded to Satellite. Expected results: Foreman callback plugin is enabled if set and report is uploaded to Satellite. Additional info:
*** Bug 2125391 has been marked as a duplicate of this bug. ***
Created redmine issue https://projects.theforeman.org/issues/35585 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35585 has been resolved.
Details about the fix: A new option to enable the callback plugin for each template was added. In the UI menu under Hosts -> Job Templates: When you create a new job-template/edit an existing job-template - if the `Provider Type` (located in the `job` tab) is set to `Ansible`, a new `Ansible` tab should be displayed, with the new `Enable Ansible Callback` option. When the checkbox is checked - the callback is enabled for this job-template, and when the checkbox is unchecked - the callback is disabled. Note: If the job-template is locked, you won’t be able to edit the `Enable Ansible Callback` option. Hammer-cli update: When running the command `hammer job-template info –id=<tempalte_id>`, there should be a new boolean property: `Ansible Callback Enabled`. If the job-template’s provider is not set to `Ansible` - the new field won’t be displayed. You should also be able to use the `--ansible-callback-enabled` option when creating/updating job-templates. API update: The new `ansible_callback_enabled` field should be included in the response of GET requests to show template details: `GET /api/job_templates/:id`. You should also be able to send the `ansible_callback_enabled` parameter when creating/editing job-templates through an API call. Let me know if you need more information.
*** Bug 2139448 has been marked as a duplicate of this bug. ***