Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1536487 - [RFE] Expose an Ansible provider for Remote Exection
[RFE] Expose an Ansible provider for Remote Exection
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Remote Execution (Show other bugs)
6.3.0
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: Unused
Assigned To: satellite6-bugs
Og Maciel
: FutureFeature, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-19 08:59 EST by Bryan Kearney
Modified: 2018-10-16 11:29 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-16 11:29:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2927 None None None 2018-10-16 11:29 EDT

  None (edit)
Description Bryan Kearney 2018-01-19 08:59:18 EST
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 03:22:52 EDT
This should be moved to POST, right?
Comment 2 Marek Hulan 2018-04-24 07:44:56 EDT
Correct, thanks!
Comment 3 Martin Korbel 2018-09-13 08:37:05 EDT
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 11:29:23 EDT
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

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