Project

Profile

Help

Issue #5518

closed

Problem: Running include_roles with pulp-rpm-prerequisites causes it to fail

Added by mdepaulo@redhat.com over 4 years ago. Updated about 4 years ago.

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

Description

Normally pulp-rpm-prerequisites gets run with a static import like:
section of playbook: "roles:"
Task in playbook/role: "import_role:"

But if it gets run via a dynamic include like:
- include_role:
name: "{{ item }}"
with_items:
- pulp.pulp_rpm_prerequisites
- pulp-database
- pulp-workers
- pulp-resource-manager
- pulp-content

It fails because it references the variable prereq_pip_packages, which has not been included from the "pulp"role (dependency of later roles) yet.

Also available in: Atom PDF