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.

Actions #1

Updated by fao89 about 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
  • Triaged changed from No to Yes
Actions #2

Updated by pulpbot about 3 years ago

  • Status changed from ASSIGNED to POST

Added by Fabricio Aguiar about 3 years ago

Revision 7b88f061 | View on GitHub

Address ansible-core deprecations

closes #9302

Added by Fabricio Aguiar about 3 years ago

Revision 7b88f061 | View on GitHub

Address ansible-core deprecations

closes #9302

Actions #3

Updated by Anonymous about 3 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by fao89 about 3 years ago

  • Sprint/Milestone set to 3.15.2
Actions #5

Updated by pulpbot about 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF