Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1646928 - Host > Play Ansible Roles skips a step
Summary: Host > Play Ansible Roles skips a step
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-06 10:39 UTC by Peter Ondrejka
Modified: 2018-11-26 09:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-14 13:26:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Ondrejka 2018-11-06 10:39:04 UTC
Description of problem:

On host list page, select host and do Select Action > Play ansible role. Job immediately starts without letting you to select the job category, template, query, etc. You have to hit "rerun" on the job page to get to the d

Version-Release number of selected component (if applicable):
Satellite 6.5 snap 2 (will check 6.4 too)

How reproducible:
Always


Actual results:
Some default role is run

Expected results:
Possibility to select parameters of playbook run.

Additional info:
BTW, I'm not sure why the "Play ansible role" option is in the action is there when "Schedule remote job" does the same thing

Comment 1 Peter Ondrejka 2018-11-06 10:50:40 UTC
Happens also in 6.4

Comment 3 Adam Ruzicka 2018-11-06 11:28:54 UTC
I think the difference is that "Schedule remote job" takes you to the new job invocation form where you can specify what to run and "Play ansible roles" takes the list of roles assigned to the host and runs them immediately.

From upstream docs[1]:

> Alternatively, you can run the playbook for all Ansible roles applicable to hosts in a host group by clicking on the Play roles button on the Host groups page.

I'd say this works as expected.

[1] - https://theforeman.org/plugins/foreman_ansible/2.x/index.html#4.3RunningAnsibleRoles

Comment 4 Brad Buckingham 2018-11-06 18:12:41 UTC
Peter, should we close this based upon comment 5?

Comment 5 Ivan Necas 2018-11-14 13:26:04 UTC
I agree this is intentional behaviour. Feel free to re-open in disagreement.

Comment 6 Peter Ondrejka 2018-11-26 09:48:36 UTC
Ok, I understand now why the option exists, though it is hard to figure out what is happening without knowing that particular line in docs, even after running the play. An easy way to improve would be making the option name more informative, something like "Play all Ansible roles from hostgroup". Therefore filing this humble rfe here:  https://bugzilla.redhat.com/show_bug.cgi?id=1653217


Note You need to log in before you can comment on or make changes to this bug.