Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gitolite.yml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. - name: Create gitolite group
  2. group: name=git state=present
  3. - name: Create gitolite user
  4. user: name=git state=present home=/home/git system=yes group=git
  5. - name: Add www-data to the git group
  6. user: name=www-data groups=git append=yes
  7. - name: Download gitolite release
  8. git: repo=git://github.com/sitaramc/gitolite
  9. dest=/home/git/gitolite
  10. version=v{{ gitolite_version }}
  11. accept_hostkey=yes
  12. - name: Give git user file permissions
  13. file: path=/home/git/gitolite
  14. state=directory
  15. recurse=yes
  16. owner=git
  17. group=git
  18. - name: Install gitolite
  19. command: ./gitolite/install -ln /usr/local/bin
  20. chdir=/home/git
  21. creates=/usr/local/bin/gitolite
  22. - name: Copy .gitolite.rc file
  23. copy: src=home_git_.gitolite.rc
  24. dest=/home/git/.gitolite.rc
  25. group=git
  26. owner=git
  27. mode=0644
  28. - name: Copy SSH public key to server
  29. copy: src=gitolite.pub
  30. dest=/home/git/{{ main_user_name }}.pub
  31. group=git
  32. owner=git
  33. mode=0644
  34. - name: Setup gitolite
  35. command: su - git -c 'gitolite setup -pk {{ main_user_name }}.pub'
  36. chdir=/home/git