Hello Yena,

that depends how your git repository is set up. In GitHub (or GitLab)
you may easily define read-only roles.
When you use something like gitolite or plain git, it is possible to
allow pull only for specific SSH keys as well.

However this is not really an Ansible question but depends on your git
setup, so without further information the question is not easily
answerable.
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/


On Tue, Jun 9, 2015 at 4:08 PM, Ye Na Rhee <[email protected]> wrote:
> Thanks for the answer.
> But we are not using GitHub but our own server for git and use ssh keys to
> access it. Therefore there isn't any github GUI or anything similar..
> How can a read-only access be granted without compromising the security?
> I want the client computers to be able to access just this repo.
>
> On Thursday, June 4, 2015 at 4:35:05 PM UTC+2, Mirko Friedenhagen wrote:
>>
>> Hello Ye,
>>
>> if I remember right, you may define different permissions for repository
>> collaborators in Gitlab. At least within organizations this is possible.
>>
>> Regards
>> Mirko
>> --
>> Sent from my mobile
>>
>> Am 03.06.2015 18:07 schrieb "Ye Na Rhee" <[email protected]>:
>>>
>>> Hello all,
>>>
>>> I'm posting here because I couldn't figure out the solution even after
>>> searching the internet for long...
>>>
>>> I'm trying to use ansible pull on my remote machines.
>>> The problem is that the git repository that I'm trying to pull from is
>>> private.
>>> The server's SSH key has been added to the github account but agent
>>> forwarding doesn't seem to work since the ansible-pull command isn't run
>>> from the server.
>>> And I don't want to give my remote machines the permission to change the
>>> git repository.
>>> How can the deployed machines be authorised to clone the repository in
>>> this case?
>>>
>>> I'm using ansible pull, in order to make sure that the deployed machines
>>> are updated with latest configuration even if they are offline at the moment
>>> of update.
>>>
>>> I would be really grateful even for the littlest help!
>>>
>>> Cheers,
>>> Yena
>>>
>>> --
>>> 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/f4d4247c-ae57-483b-bb0d-09b747492284%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/130a3f2a-4aec-4b03-887e-1e942d042e60%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAK8jvqxoh-CSBM8LB0N8fUdrH1NV-PjP-9x9wS6dTJ5%3Dqdfe_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to