1
0
Fork 0
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:
Vladimir Botka 2022-01-30 01:30:53 +01:00
parent 5b9d01ec2d
commit 0f38450868
No known key found for this signature in database
GPG key ID: 90D199128ED44F01
4 changed files with 130 additions and 118 deletions

View file

@ -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

View file

@ -1,2 +1,2 @@
list3: list3:
{{ list3|to_nice_yaml|indent(2) }} {{ list3|to_nice_yaml(indent=0) }}

View file

@ -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

View file

@ -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