That's not only possible but highly reconmended as well. Especially if they're subject to change - i think most people here use roles that are.
Dick On Mon, 4 Sep 2017 at 17:48, Ash Powell <[email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/ansible-project/5b4a66be-8d23-43c0-a5b8-7df8010e4412%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Dick Visser GÉANT Want to join us? We're hiring: https://www.geant.org/jobs -- 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/CAL8fbwN8dd04pW%3Dspw6mBY97Mm28m-O7Dz4zG4cGhJegsqRugg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
