Project

Profile

Help

Issue #9302

closed

"'static' is not a valid attribute for a HandlerTaskInclude " error when installer runs with ansible-core 'devel' branch

Added by simaishi about 3 years ago. Updated about 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

When the installer runs with ansible-core 'devel', it fails with this error:

ERROR! 'static' is not a valid attribute for a HandlerTaskInclude

The error appears to be in '/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/handlers/main.yml': line 63, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

by not using include_tasks

  • name: Restart all Pulp services ^ here

When ran with ansible-core 2.11, this warning appears:

[DEPRECATION WARNING]: The use of 'static' has been deprecated. Use 'import_tasks' for static inclusion, or 'include_tasks' for dynamic inclusion. This feature will be removed from ansible-core in version 2.12

ansible version: ansible [core 2.12.0.dev0]

pulp-installer 3.14.3-1 was used, but 'devel' branch also has the 'static' set.

Also available in: Atom PDF