Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags on tasks in dependent roles are not included in playbook runs #6330

Description

@neh
Issue Type:

Bug Report

Ansible Version:

ansible 1.6
Commit: 73c883c

Environment:

Ubuntu 13.10 controlling Ubuntu 12.04.

Summary:

Tags on tasks in roles depended on by applied roles are not included in playbook runs.

Steps To Reproduce:
  1. Check out ansible commit 73c883c or later.
  2. Apply a role to a host that depends on another role containing a tag.

My minimal test setup looks like this:

Playbook:


---
- hosts: xx.xx.xx.xx
  roles:
    - test_tagbug/some_role

roles/test_tagbug/some_role/meta/main.yml:


---
dependencies:
  - { role: test_tagbug/base }

roles/test_tagbug/base/tasks/main.yml:


---
- command: date
  tags: test_tagged

Run command:

ansible-playbook tagbugtest.yml -i xx.xx.xx.xx, -u ubuntu -k --tags test_tagged
Expected Results:

I expected the tagged task to run as it does before that commit.

Actual Results:

The tagged task is not found. If it's the only task, nothing is run:

ERROR: tag(s) not found in playbook: test_tagged

Metadata

Metadata

Assignees

Labels

bugThis issue/PR relates to a bug.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions