ansibleguy76 / ansibleforms

A webapplication to create pretty advanced forms to run ansible playbooks or awx templates.
https://ansibleforms.com/
GNU General Public License v3.0
74 stars 12 forks source link

New Feature - Storing playbooks in a GIT repository #108

Closed revolonl closed 1 year ago

revolonl commented 1 year ago

No issue only a way to store ansible playbook in GIT repository. Describe the solution you'd like

I would like to store all my playbooks in a GIT. It would permit to have a simple code modification tracking. Then in the form, i could specify the yaml file in the GIT repo directly. If i am right,this feature exist in AWX.

vcmirko commented 1 year ago

In AWX that's indeed a builtin feature. In case of AF and no AWX (Ansible core inside the docker), your playbooks are generally exposed from the linuxhost over a mapped volume entry in the docker-compose file => into the docker container.

example : /mydockerfolder/.../data/playbooks => /app/dist/persistent/data/playbooks.

So you can simply do a git init on the host and you can do push/pulls from there. with visual studio code, you can also open the remote folders and do it from the gui.

I could add this as a feature, but that would involve setting up the whole git cycle, etc.... and that's guite some coding.

revolonl commented 1 year ago

Ok, i will go this way ! Thanks for your answer ;-)

ansibleguy76 commented 1 year ago

i will close this