system-config/playbooks/test-inline-python.yaml

9 lines
165 B
YAML

- hosts: localhost
tasks:
- inline_python:
args:
foo: 1
bar: 2
script: |
exit_json(changed=True, result=foo+bar)