Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1536487

Summary: [RFE] Expose an Ansible provider for Remote Exection
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Og Maciel <omaciel>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aruzicka, inecas, mhulan
Target Milestone: 6.4.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 15:29:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2018-01-19 13:59:18 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ivan Necas 2018-04-24 07:22:52 UTC
This should be moved to POST, right?

Comment 2 Marek Hulan 2018-04-24 11:44:56 UTC
Correct, thanks!

Comment 3 Martin Korbel 2018-09-13 12:37:05 UTC
VERIFIED on Sat6.4#21


Reproducer:
1. We have got Sat6.4 and some client machine. On client machine we have to upload Satellite public SSH key.
   > curl -k https://<sat-fqdn>:9090/ssh/pubkey >> ~/.ssh/authorized_keys

2. install some Ansible role to satellite
   > ansible-galaxy install -p /etc/ansible/roles/ linuxhq.setup

3. import this role to Satellite
   > hammer ansible roles import
   ---|--------------------------------|--------------------
   ID | NAME                           | IMPORTED AT        
   ---|--------------------------------|--------------------
   2  | linuxhq.setup                  | 2018/09/11 07:17:47
   3  | RedHatInsights.insights-client | 2018/09/11 07:17:47
   ---|--------------------------------|--------------------

4. assign this role to client profile. We can not use attribute --ansible-roles, because it does not work (bz1590854). 
   > hammer host update --ansible-role-ids 2 --name  host-8.redhat.com
   Host updated.


5. List of job templates
> hammer job-template list

----|---------------------------------------|--------------------|----------|-------------
ID  | NAME                                  | JOB CATEGORY       | PROVIDER | TYPE        
----|---------------------------------------|--------------------|----------|-------------
126 | Ansible Roles - Ansible Default       | Ansible Playbook   | Ansible  | job_template
127 | Ansible Roles - Install from Galaxy   | Ansible Galaxy     | Ansible  | job_template
128 | Ansible Roles - Install from git      | Ansible Roles Insta| Ansible  | job_template
129 | Ansible - Run insights maintenance pla| Ansible Playbook   | Ansible  | job_template
...


6. Run a job with command line inputs
> hammer job-invocation create --job-template "Ansible Roles - Ansible Default" --search-query "name ~ host-8.redhat.com"
Job invocation 6 created
[..................................................................................] [100%]
1 task(s), 1 success, 0 fail

Comment 6 errata-xmlrpc 2018-10-16 15:29:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927