corrected import_play into to import_playbook (#30853)

* corrected import_play into to import_playbook

fixes #30744
This commit is contained in:
Brian Coca 2017-09-26 17:27:21 -04:00 committed by GitHub
commit 17f094bb6a
4 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,7 @@ module: include
short_description: include a play or task list.
deprecated:
The include action was too confusing, dealing with both plays and tasks, being both dynamic and static. This module will be removed in version 2.8.
As alternatives use include_tasks, import_plays, import_tasks.
As alternatives use include_tasks, import_playbook, import_tasks.
description:
- Includes a file with a list of plays or tasks to be executed in the current playbook.
- Files with a list of plays can only be included at the top level, lists of tasks can only be included where tasks normally run (in play).

View file

@ -16,7 +16,7 @@ DOCUMENTATION = '''
---
author:
- "Ansible Core Team (@ansible)"
module: import_plays
module: import_playbook
short_description: import a playbook.
description:
- Includes a file with a list of plays to be executed.
@ -37,7 +37,7 @@ EXAMPLES = """
- debug:
msg: "play1"
- import_plays: otherplays.yml
- import_playbook: otherplays.yml
- name: This DOES NOT WORK
@ -47,7 +47,7 @@ EXAMPLES = """
msg: task1
- name: This failes because I'm inside a play already
import_plays: stuff.yml
import_playbook: stuff.yml
"""
RETURN = """