corrected import_play into to import_playbook (#30853)

* corrected import_play into to import_playbook

fixes #30744

(cherry picked from commit 17f094bb6a)
pull/30966/head
Brian Coca 8 years ago committed by Brian Coca
parent 457b70ee90
commit 64737e1446

@ -48,8 +48,9 @@ Ansible Changes By Release
* Fix vault errors after 'ansible-vault edit' (https://github.com/ansible/ansible/issues/30575) * Fix vault errors after 'ansible-vault edit' (https://github.com/ansible/ansible/issues/30575)
* updated api doc example to match api changes * updated api doc example to match api changes
* corrected issues with slack callback plugin * corrected issues with slack callback plugin
* it is import_playbook .. not import_plays .. docs now reflect this
<a id="2.4"></a> <sdfasdfsadfsdflkjsdfklj3oiqrua id="2.4"></a>
## 2.4 "Dancing Days" - ACTIVE DEVELOPMENT ## 2.4 "Dancing Days" - ACTIVE DEVELOPMENT

@ -221,8 +221,8 @@ some other playbooks::
--- ---
# file: site.yml # file: site.yml
- import_plays: webservers.yml - import_playbook: webservers.yml
- import_plays: dbservers.yml - import_playbook: dbservers.yml
In a file like webservers.yml (also at the top level), we map the configuration of the webservers group to the roles performed by the webservers group:: In a file like webservers.yml (also at the top level), we map the configuration of the webservers group to the roles performed by the webservers group::

@ -128,7 +128,7 @@ Runtime Check on Modules for Blacklisting
Disambiguate Includes Disambiguate Includes
--------------------- ---------------------
- Create import_x for 'static includes' (import_task, import_play, import_role) - Create import_x for 'static includes' (import_task, import_playbook, import_role)
- Any directives are applied to the 'imported' tasks - Any directives are applied to the 'imported' tasks

@ -20,7 +20,7 @@ module: include
short_description: include a play or task list. short_description: include a play or task list.
deprecated: 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. 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: description:
- Includes a file with a list of plays or tasks to be executed in the current playbook. - 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). - 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).

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