ansible/examples
Sviatoslav Sydorenko be28e98cf2
[backport][2.10][PR #70446] Refactor Python API examples and docs (#70850)
* Add boilerplate snippet into `examples/`

It is a partial backport of #70224

(partially cherry picked from commit 4816bb4f43)

* Refactor Python API examples and docs

PR #70446: it's a follow-up for #70445.

It includes a merge of `examples/scripts/uptime.py` and a similar
code snippet from `docs/docsite/rst/dev_guide/developing_api.rst`.

This patch also changes the docs RST file to include contents of
the example file instead of holding a copy of a similar code.

(cherry picked from commit 20bb915092)
2020-07-29 13:51:21 -07:00
..
scripts [backport][2.10][PR #70446] Refactor Python API examples and docs (#70850) 2020-07-29 13:51:21 -07:00
ansible.cfg Change example ControlPath to be short and unique (#69347) 2020-05-07 14:52:42 -05:00
DOCUMENTATION.yml Fix some broken links (#42079) 2018-06-29 11:12:01 -07:00
hosts add punctuation marks to comments (#68882) 2020-05-06 13:14:06 -04:00
hosts.yaml Clearer examples of hosts.yml inventory (#57999) 2019-06-18 15:58:28 -05:00
hosts.yml
inventory_script_schema.json draft schema for inventory scripts (#39454) 2018-05-24 23:38:16 -04:00
play.yml comment heavy playbook (#68981) 2020-05-19 17:27:08 -04:00
plugin_filters.yml Implement plugin filtering 2018-01-22 16:54:53 -08:00