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 1989034 - A playbook with include_vars definition wipes out all facts for a system
Summary: A playbook with include_vars definition wipes out all facts for a system
Keywords:
Status: CLOSED DUPLICATE of bug 1934115
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible - Configuration Management
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Danny Synk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-02 09:31 UTC by Stefan Meyer
Modified: 2021-08-12 18:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-12 18:58:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1934115 1 medium CLOSED Foreman facts callback does not work well when more facts are added from roles 2024-12-20 19:42:36 UTC

Description Stefan Meyer 2021-08-02 09:31:36 UTC
Description of problem:
If a playbook uses include_vars in the playbook all facts that have been sent to Satellite before are cleared out

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

How reproducible:
Whenever a playbook uses include_vars in the main.yml playbook file

Steps to Reproduce:
1. Use chrony playbook from [1] or create an example playbook manually
2. Manual reproducer:

file tasks/main.yml:
---
- name: Add some vars
  include_vars: "custom_vars.yml"

file vars/custom_vars.yml:
---
custom_var: "Hello again!"


3.Run Ansible roles on the client without any playbooks assigned
4. All facts are now shown
5. Assign the new role to the client and run Ansible roles again

Actual results:
- After running the role the facts for the clients are getting deleted
- What is left is just an entry for "custom_var"

Expected results:
- The facts should not get removed
- Old facts should only get removed when it is triggered by Satellite

Additional info:
[1] https://galaxy.ansible.com/ericsysmin/system


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