Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtyr/ansible-run_playbook

An example of how to run an Ansible Playbook programatically
https://github.com/jtyr/ansible-run_playbook

Last synced: 19 days ago
JSON representation

An example of how to run an Ansible Playbook programatically

Awesome Lists containing this project

README

        

Ansible - Run Playbook
======================

This is an example of how to run Ansible v2 Playbook programatically.

Usage
-----

```
$ cd env
$ ../run.py

PLAY [Test play] ***************************************************************

TASK [Debug task] **************************************************************
ok: [localhost] => {
"msg": "Hello world!"
}

PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0
```

Resources
---------

* [Running Ansible 2 Programmatically](https://serversforhackers.com/running-ansible-2-programmatically)

Author
------

Jiri Tyr

License
-------

MIT