Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jtyr/ansible-run_playbook
- Owner: jtyr
- Created: 2016-03-07T01:46:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T22:56:35.000Z (over 7 years ago)
- Last Synced: 2024-10-03T12:38:00.848Z (about 1 month ago)
- Language: Python
- Size: 2.93 KB
- Stars: 36
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.pyPLAY [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