This may be a silly question, but I've searched around and can't find 
anyone asking a similar thing.

Is it possible for Ansible roles to be stored in a source control 
repository (such as Git)?

Scenario;

We have an ansible server and currently, all of our roles are stored in 
/etc/ansible/roles
If we want to make a change to a role we ssh onto the ansible server and 
manually edit the file (such as tasks/main.yml)

Is there a way that we can have these files stored in source control so 
that I can edit the file from my local machine, push into a repo and then 
ansible pulls the files before running the playbook/role?
I know we can store files in a repo and call these files DURING a job run, 
but I want to store the roles themselves in there...

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5b4a66be-8d23-43c0-a5b8-7df8010e4412%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to