water-hole / ansible-operator

POC Code for the operator backed by ansible
48 stars 29 forks source link

Refactors runner to hide implementation. #29

Closed mhrivnak closed 6 years ago

mhrivnak commented 6 years ago

This takes the "divide and conquor" approach by breaking up the data and behavior into smaller pieces. Specifically, this introduces a job object to represent an individual run of ansible-runner, and an InputDir object to represent and create ansible-runner's input directory on disk.

There is more to do, such as add the event API and make role support actually work, but this restructure hopefully moves things in the right direction.

mhrivnak commented 6 years ago

I re-pushed just to update the git log message to reflect the changes to this PR.