Skip to content

include_role doesn't support notify #26537

@farcaller

Description

@farcaller
ISSUE TYPE
  • Bug Report
COMPONENT NAME

include_role

ANSIBLE VERSION
ansible 2.3.1.0
  config file =
  configured module search path = Default w/o overrides
  python version = 3.6.1 (default, Jul  6 2017, 10:09:38) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]
OS / ENVIRONMENT

N/A

SUMMARY

include_role doesn't support changed status, making it impossible to trigger handlers or further activities based on include_role invocation.

STEPS TO REPRODUCE
- include_role: {name: other_role}
  register: role
- debug:
  msg: '{{role.changed}}'
EXPECTED RESULTS

role.changed would be true if any task within included role was changed

ACTUAL RESULTS

role is empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.3This issue/PR affects Ansible v2.3bugThis issue/PR relates to a bug.featureThis issue/PR relates to a feature request.include_rolesupport:coreThis issue/PR relates to code supported by the Ansible Engineering Team.

    Type

    No type
    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