File: index.md

package info (click to toggle)
python-ansible-compat 25.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 656 kB
  • sloc: python: 2,522; sh: 26; makefile: 24
file content (16 lines) | stat: -rw-r--r-- 360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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!}
```