pcuzner / ansible-runner-service

Python project that wraps the ansible_runner 'engine' inside a RESTful API
Other
17 stars 9 forks source link

Add a 'system' endpoint #49

Open pcuzner opened 6 years ago

pcuzner commented 6 years ago

The idea is simple. We use a directory to hold playbook file names - we add the file at start and remove when the playbook completes. This way if bad things happen to the daemon, you can query the endpoint and find out what was being run from just a listdir and admin can resubmit the plays.

We could also consider placing a small json object in the file - IP who submitted it, username, and start time.