summaryrefslogtreecommitdiffstats
path: root/docs/index.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 00:24:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 00:24:37 +0000
commit1022b2cebe73db426241c2f420d4ee9f6f3c1bed (patch)
treea5c38ccfaa66e8a52767dec01d3598b67a7422a8 /docs/index.md
parentInitial commit. (diff)
downloadpython-ansible-compat-1022b2cebe73db426241c2f420d4ee9f6f3c1bed.tar.xz
python-ansible-compat-1022b2cebe73db426241c2f420d4ee9f6f3c1bed.zip
Adding upstream version 4.1.11.upstream/4.1.11
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/index.md')
-rw-r--r--docs/index.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000..3a54962
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,16 @@
+# Examples
+
+## Using Ansible runtime
+
+```python title="example.py"
+{!../test/test_runtime_example.py!}
+```
+
+## Access to Ansible configuration
+
+As you may not want to parse `ansible-config dump` yourself, you can make use of
+a simple python class that facilitates access to it, using python data types.
+
+```python
+{!../test/test_configuration_example.py!}
+```