-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty "META: " lines printed #77315
Comments
Files identified in the description: If these files are incorrect, please update the |
Which meta tasks are being used in the playbook? This appears to happen for when some meta tasks are being skipped because then the actual message is empty and "skip_reason" is being used instead, though we still print the header in ansible/lib/ansible/plugins/strategy/__init__.py Lines 1314 to 1321 in 68b5db3
|
There are about few dozen |
Managed to somehow get these empty I don't know if that is all, will try to create a test if I find time... Edit: and a few tasks later: included: /x/roles/application/server/tasks/before_reboot.yml for host.example.com
ERROR! Unexpected Exception, this is probably a bug: 'IncludeRole' object has no attribute 'cached_name' What is intriguing about this error that the Edit2: The empty |
i suspect these are |
Full output for my Fetching: https://netbox[...]
PLAYBOOK: site.yml **************************************************************************************************************************************************************
87 plays in site.yml
PLAY [all] **********************************************************************************************************************************************************************
META: ran handlers
TASK [Check variable] *****************************************************************************************************************************************
task path: /x/site.yml:6
skipping: [host.example.com] => changed=false
skip_reason: Conditional result was False
TASK [Check other variable] **************************************************************************************************************************************
task path: /x/site.yml:10
skipping: [host.example.com] => changed=false
skip_reason: Conditional result was False
META: ran handlers
META: ran handlers
PLAY [Run role] *****************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************
task path: /x/server.yml:2
ok: [host.example.com]
META: ran handlers
META: |
Summary
My complex
site.yml
causes "empty"META:
lines being printed often together with otherMETA:
lines such asran handlers
,role_complete
.The line is:
There is a space after the
META:
but after that there isn't any reason such asran handlers
orrole_complete
.Normal/valid
META:
lines with a "reason" often but not always have these "empty"META:
lines near them.I cannot duplicate this issue with a simple playbook or a simple playbook + role. My
site.yml
uses multiple layers ofinclude_role
and so on so it is difficult to try to simplify it into test case. But perhaps it could be possible to look at how that "empty"META:
line could be possible.Issue Type
Bug Report
Component Name
ansible
Ansible Version
Configuration
OS / Environment
EL7
Steps to Reproduce
could not reproduce with a naive test case, it is visible in my site.yml that contains total ~500 .yml files across dozens of roles
Expected Results
There should be no spurious
META:
lines with no further information on what it is about.Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: