Probably lots of 'correct' ways of setting this up, but if you want a 
suggestion of how to start, this is something that Sam Doran talked about 
in his Ansiblefest London talk earlier this year.  The video is 
here: https://www.youtube.com/watch?v=7gEKmsuJr7s&feature=youtu.be

(other interesting presentations 
here: https://www.ansible.com/videos-ansiblefest-london-2017 , by the way).

Hope this helps,

Jon


On Tuesday, September 5, 2017 at 8:27:50 AM UTC+1, Ash Powell wrote:
>
> Fantastic!
>
> Are there any guides or walkthroughs showing the best/correct way of 
> setting this up?
>
> Like I say, I’ve had a search myself but there’s nothing specific that I 
> can find.
>
> On Monday, 4 September 2017 17:46:59 UTC+1, Dick Visser wrote:
>>
>> 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/9f30f83d-e925-4f02-8e48-fb5b25e97f6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to