Skip to content

An example of how to run an Ansible Playbook programatically

Notifications You must be signed in to change notification settings

jtyr/ansible-run_playbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Author

Jiri Tyr

License

MIT

About

An example of how to run an Ansible Playbook programatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages