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

https://github.com/staticf0x/ansible-tower-mock

A simple script to mock launching ansible-tower job templates
https://github.com/staticf0x/ansible-tower-mock

Last synced: 16 days ago
JSON representation

A simple script to mock launching ansible-tower job templates

Awesome Lists containing this project

README

          

# ansible-tower-mock

A simple script to mock launching ansible-tower job templates

## How to run

1. Copy the script into your playbooks folder
2. Set `FLASK_APP` to `ansible-tower-mock.py`
3. Set `MOCK_PLAYBOOK` to the path of your playbook
4. Run `flask run`

You can then make POST requests to `/api/v2/job_templates//launch/` and
the script will run `ansible-playbook` locally in the folder.