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 1763783

Summary: Satellite is not importing Ansible variables from the role under ~/vars/main.yml.
Product: Red Hat Satellite Reporter: Rudnei Bertol Jr. <rbertolj>
Component: Ansible - Configuration ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: mhulan
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-01 15:12:05 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:
Attachments:
Description Flags
Ansible role sgti.yum_update.tar with vars on ~/vars/main.yml none

Description Rudnei Bertol Jr. 2019-10-21 15:19:43 UTC
Description of problem:

When importing a role that has variables on the ~/role_name/vars/main.yml file, those variables are not imported on the WebUI.

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

6.6 Beta

How reproducible:

Create or install a role that has variables on the "~/vars/main.yml" file.


Steps to Reproduce:
1. Copy/Install a role that has variable on the file "~/vars/main.yml";
2. Import the role on the Satellite WebUI;
3. Import the variables on the Satellite WebUI;

Actual results:

The variables present on the file "~/vars/main.yml" are not imported on the Satellite, it means that those variables will not be available to be overwritten on the Parameters tab, on the client.

Expected results:

Files present in the file "~/vars/main.yml", should be imported on the Satellite.

Additional info:

Comment 3 Rudnei Bertol Jr. 2019-10-21 15:39:24 UTC
*** Bug 1763785 has been marked as a duplicate of this bug. ***

Comment 4 Rudnei Bertol Jr. 2019-10-21 15:40:05 UTC
*** Bug 1763784 has been marked as a duplicate of this bug. ***

Comment 5 Rudnei Bertol Jr. 2019-10-21 15:56:04 UTC
Created attachment 1627728 [details]
Ansible role sgti.yum_update.tar with vars on ~/vars/main.yml

Comment 7 Marek Hulan 2019-11-01 15:12:05 UTC
This is expected behavior. We parse only default.yml. Note that vars/main.yml may override default type. In Satellite we want to display defaults only and let user override through Satellite. If the role does not list the variable in defaults.yml, users can add it manually in Satellite. I'll be happy to discuss further but for now, I'm closing as notabug. Feel free to reopen or reach out to me if you disagree or I'm missing something.