mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
removed unused 'static' option
the task level directive is what actually controls this, this option was never used
This commit is contained in:
parent
f97e6f8903
commit
884b529195
2 changed files with 2 additions and 9 deletions
|
@ -41,11 +41,6 @@ options:
|
|||
- "File to load from a Role's defaults/ directory."
|
||||
required: False
|
||||
default: 'main'
|
||||
static:
|
||||
description:
|
||||
- Gives Ansible a hint if this is a 'static' include or not. If static it implies that it won't need templating nor loops nor conditionals and will show included tasks in the --list options.
|
||||
required: False
|
||||
default: None
|
||||
allow_duplicates:
|
||||
description:
|
||||
- Overrides the role's metadata setting to allow using a role more than once with the same parameters.
|
||||
|
@ -56,10 +51,9 @@ options:
|
|||
- If True the variables from defaults/ and vars/ in a role will not be made available to the rest of the play.
|
||||
default: None
|
||||
notes:
|
||||
- THIS IS EARLY PREVIEW, THINGS MAY CHANGE
|
||||
- Handlers are made available to the whole play.
|
||||
- simple dependencies seem to work fine.
|
||||
- "Things not tested (yet): plugin overrides, nesting includes, used as handler, other stuff I did not think of when I wrote this."
|
||||
- As with C(include) this task can be static or dynamic, If static it implies that it won't need templating nor loops nor conditionals and will show included tasks in the --list options. Ansible will try to autodetect what is needed, but you can set `static: yes|no` at task level to control this.
|
||||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
|
|
|
@ -48,7 +48,6 @@ class IncludeRole(Task):
|
|||
|
||||
# private as this is a 'module options' vs a task property
|
||||
_allow_duplicates = FieldAttribute(isa='bool', default=True, private=True)
|
||||
_static = FieldAttribute(isa='bool', default=None, private=True)
|
||||
_private = FieldAttribute(isa='bool', default=None, private=True)
|
||||
|
||||
def __init__(self, block=None, role=None, task_include=None):
|
||||
|
@ -113,7 +112,7 @@ class IncludeRole(Task):
|
|||
|
||||
#FIXME: find a way to make this list come from object ( attributes does not work as per below)
|
||||
# manual list as otherwise the options would set other task parameters we don't want.
|
||||
for option in ['static', 'private', 'allow_duplicates']:
|
||||
for option in ['private', 'allow_duplicates']:
|
||||
if option in ir.args:
|
||||
setattr(ir, option, ir.args.get(option))
|
||||
|
||||
|
|
Loading…
Reference in a new issue