Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include_role module docs list 'None' as default for private parameter #21077

Closed
wenottingham opened this issue Feb 6, 2017 · 1 comment · Fixed by #39566
Closed

include_role module docs list 'None' as default for private parameter #21077

wenottingham opened this issue Feb 6, 2017 · 1 comment · Fixed by #39566
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bug This issue/PR relates to a bug. has_pr This issue has an associated PR. include_role support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@wenottingham
Copy link
Contributor

ISSUE TYPE
  • Bug Report
COMPONENT NAME

include_role

ANSIBLE VERSION
ansible 2.2.1.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides

(also devel)

CONFIGURATION
OS / ENVIRONMENT

CentOS 7, Fedora

SUMMARY

include_role takes a private parameter, described as:
"If True the variables from defaults/ and vars/ in a role will not be made available to the rest of the play."

module docs list the default as 'None', which is ambiguous. Presumably the default is actually one of 'True' or 'False'.

STEPS TO REPRODUCE
  1. look at docs.
@ansibot ansibot added affects_2.2 This issue/PR affects Ansible v2.2 bug_report module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. labels Feb 6, 2017
@alikins
Copy link
Contributor

alikins commented Feb 6, 2017

Not sure what the docs should say here. The 'default=None" kind of matches lib/ansible/playbook/role_include.py.IncludeRole's _private attribute

_private = FieldAttribute(isa='bool', default=None, private=True)

@alikins alikins removed the needs_triage Needs a first human triage before being processed. label Feb 6, 2017
@ansibot ansibot added the support:core This issue/PR relates to code supported by the Ansible Engineering Team. label Jun 29, 2017
@ansibot ansibot removed the module This issue/PR relates to a module. label Nov 23, 2017
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 1, 2018
@sivel sivel added this to Pending in include and import issues Apr 30, 2018
@sivel sivel moved this from Triage to In Progress in include and import issues May 1, 2018
@sivel sivel added the has_pr This issue has an associated PR. label May 1, 2018
include and import issues automation moved this from In Progress to Done May 1, 2018
@ansible ansible locked and limited conversation to collaborators May 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bug This issue/PR relates to a bug. has_pr This issue has an associated PR. include_role support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
Development

Successfully merging a pull request may close this issue.

4 participants