mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Examples syntax batch4 (#5620)
* Change example syntax on authorized_key module * Change example syntax on cron module * Change example syntax on group module * Change example syntax on hostname module * Change example syntax on seboolean module * Change example syntax on selinux module * Change example syntax on service module * Change example syntax on sysctl module * Change example syntax on systemd module * Change example syntax on user module * Change example syntax on debug module * Change example syntax on fail module * Change example syntax on include module * Change example syntax on include_role module * Change example syntax on include_vars module * Change example syntax on pause module * Change example syntax on wait_for module * Change example syntax on apache2_module module * > Change example syntax on django_manage module * Change example syntax on htpasswd module
This commit is contained in:
parent
ad6999e2eb
commit
b56a9852ee
20 changed files with 261 additions and 87 deletions
|
@ -34,7 +34,8 @@ EXAMPLES = """
|
|||
# include a play after another play
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- debug: msg="play1"
|
||||
- debug:
|
||||
msg: "play1"
|
||||
|
||||
- include: otherplays.yml
|
||||
|
||||
|
@ -42,15 +43,21 @@ EXAMPLES = """
|
|||
# include task list in play
|
||||
- hosts: all
|
||||
tasks:
|
||||
- debug: msg=task1
|
||||
- debug:
|
||||
msg: task1
|
||||
|
||||
- include: stuff.yml
|
||||
- debug: msg=task10
|
||||
|
||||
- debug:
|
||||
msg: task10
|
||||
|
||||
# dyanmic include task list in play
|
||||
- hosts: all
|
||||
tasks:
|
||||
- debug: msg=task1
|
||||
- include: {{hostvar}}.yml
|
||||
- debug:
|
||||
msg: task1
|
||||
|
||||
- include: "{{ hostvar }}.yml"
|
||||
static: no
|
||||
when: hostvar is defined
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue