Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 407 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 407 Bytes

Examples

Two examples describing how to use Ansible programmatically in Python.

  • test_modules.py : set up the environment to run an Ansible module
  • test_playbook.py: creates an inventory and loads a .yml file with a playbook, then runs the playbook and shows the results like Ansible-playbook CLI tool

Other files:

  • ansible.cfg : just a basic Ansible configuration file
  • test.yml : simple playbook