Bug 1386883 - ansible-playbook runs not reported to Satellite, running ansible 1.9
Summary: ansible-playbook runs not reported to Satellite, running ansible 1.9
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: sthirugn@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 18:32 UTC by sthirugn@redhat.com
Modified: 2016-10-19 20:15 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-19 20:15:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description sthirugn@redhat.com 2016-10-19 18:32:19 UTC
Description of problem:
ansible-playbook runs not reported to Satellite, running ansible 1.9

Version-Release number of selected component (if applicable):
# rpm -qa | grep satellite
satellite-installer-6.3.0-1.el7sat.noarch
satellite-cli-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch
tfm-rubygem-foreman_theme_satellite-1.0.0-1.git.2.94b76fc.el7.noarch
satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch

# rpm -qa | grep ansible
ansible1.9-1.9.6-2.el7.noarch
tfm-rubygem-foreman_ansible-1.2.1-1.fm1_13.el7.noarch
tfm-rubygem-foreman_ansible_core-0.0.1-2.fm1_13.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. ansible callback is setup properly in satellite and `ansible -m setup localhost` ran without any errors
2. Create a simple ansible module.  My main.yml just had:
---
- hosts: all
  remote_user: root
  tasks:
  - name: enable selinux
    command: /sbin/setenforce 1
3. # cat /etc/ansible/hosts
...
...
rhsm-qe-3.rhq.lab.eng.bos.redhat.com
192.168.100.5
4. Run playbook:
# ansible-playbook /etc/ansible/roles/ntp/tasks/main.yml 

PLAY [all] ******************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [192.168.100.5]
ok: [rhsm-qe-3.rhq.lab.eng.bos.redhat.com]

TASK: [enable selinux] ******************************************************** 
changed: [192.168.100.5]
changed: [rhsm-qe-3.rhq.lab.eng.bos.redhat.com]

PLAY RECAP ******************************************************************** 
192.168.100.5              : ok=2    changed=1    unreachable=0    failed=0   
rhsm-qe-3.rhq.lab.eng.bos.redhat.com : ok=2    changed=1    unreachable=0    failed=0   


Actual results:
No reports created in Satellite after the successful playbook run as shown above.

Expected results:
Reports created in Satellite after the successful playbook run as shown above.

Additional info:
Earlier I reported this for Ansible 2.x versions (https://bugzilla.redhat.com/show_bug.cgi?id=1383697) but in Satellite 6.3 snap 5 - it failed for Ansible 1.9 as well.

Comment 2 sthirugn@redhat.com 2016-10-19 20:15:26 UTC
Configuration error. It works fine after fixing the configuration.


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