mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixed indentation. Comments and notes added.
This commit is contained in:
parent
5b9d01ec2d
commit
0f38450868
4 changed files with 130 additions and 118 deletions
|
@ -5,6 +5,7 @@ list1:
|
||||||
extra: false
|
extra: false
|
||||||
- name: meh
|
- name: meh
|
||||||
extra: true
|
extra: true
|
||||||
|
|
||||||
list2:
|
list2:
|
||||||
- name: foo
|
- name: foo
|
||||||
path: /foo
|
path: /foo
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
list3:
|
list3:
|
||||||
{{ list3|to_nice_yaml|indent(2) }}
|
{{ list3|to_nice_yaml(indent=0) }}
|
||||||
|
|
|
@ -1,15 +1,25 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# 1) Run all examples and create example-XXX.out
|
# 1) Run all examples and create example-XXX.out
|
||||||
# shell> ansible-playbook playbook.yml -e examples=true
|
# shell> ansible-playbook playbook.yml -e examples=true
|
||||||
#
|
#
|
||||||
# 2) Optionally, create examples_all.rst
|
# 2) Optionally, for testing, create examples_all.rst
|
||||||
# shell> ansible-playbook playbook.yml -e examples_all=true
|
# shell> ansible-playbook playbook.yml -e examples_all=true
|
||||||
#
|
#
|
||||||
# 3) Create other REST files. See the blocks below.
|
# 3) Create docs REST files
|
||||||
# shell> ansible-playbook playbook.yml -e merging_lists_of_dictionaries=true
|
# shell> ansible-playbook playbook.yml -e merging_lists_of_dictionaries=true
|
||||||
|
#
|
||||||
|
# Notes:
|
||||||
|
# * Use YAML callback, e.g. set ANSIBLE_STDOUT_CALLBACK=community.general.yaml
|
||||||
|
# * Use sphinx-view to render and review the REST files
|
||||||
|
# shell> sphinx-view <path_to_helper>/examples_all.rst
|
||||||
|
# * Proofread and copy completed docs *.rst files into the directory rst.
|
||||||
|
# * Then delete the *.rst and *.out files from this directory. Do not
|
||||||
|
# add *.rst and *.out in this directory to the version control.
|
||||||
|
#
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# docs/docsite/helper/lists_mergeby/playbook.yml
|
# community.general/docs/docsite/helper/lists_mergeby/playbook.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -16,6 +16,7 @@ Let us use the lists below in the following examples
|
||||||
extra: false
|
extra: false
|
||||||
- name: meh
|
- name: meh
|
||||||
extra: true
|
extra: true
|
||||||
|
|
||||||
list2:
|
list2:
|
||||||
- name: foo
|
- name: foo
|
||||||
path: /foo
|
path: /foo
|
||||||
|
|
Loading…
Reference in a new issue