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
- Host: GitHub
- URL: https://github.com/staticf0x/ansible-tower-mock
- Owner: staticf0x
- License: mit
- Created: 2021-11-11T13:21:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-30T12:34:16.000Z (over 4 years ago)
- Last Synced: 2025-02-23T18:33:29.804Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.