Nessuna descrizione
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

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. - name: Give git user file permissions
  12. file: path=/home/git/gitolite
  13. state=directory
  14. recurse=yes
  15. owner=git
  16. group=git
  17. - name: Install gitolite
  18. command: ./gitolite/install -ln /usr/local/bin
  19. chdir=/home/git
  20. creates=/usr/local/bin/gitolite
  21. - name: Copy .gitolite.rc file
  22. copy: src=home_git_.gitolite.rc
  23. dest=/home/git/.gitolite.rc
  24. group=git
  25. owner=git
  26. mode=0644
  27. - name: Copy SSH public key to server
  28. copy: src=gitolite.pub
  29. dest=/home/git/{{ main_user_name }}.pub
  30. group=git
  31. owner=git
  32. mode=0644
  33. - name: Setup gitolite
  34. command: su - git -c 'gitolite setup -pk {{ main_user_name }}.pub'
  35. chdir=/home/git