Bez popisu
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_packaged.yml 756B

1234567891011121314151617181920212223242526272829
  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: Install gitolite3 package
  8. apt: pkg=gitolite3 state=installed
  9. - name: Copy .gitolite.rc file
  10. copy: src=home_git_.gitolite.rc
  11. dest=/home/git/.gitolite.rc
  12. group=git
  13. owner=git
  14. mode=0644
  15. - name: Copy SSH public key to server
  16. copy: src=gitolite.pub
  17. dest=/home/git/{{ main_user_name }}.pub
  18. group=git
  19. owner=git
  20. mode=0644
  21. - name: Setup gitolite
  22. command: su - git -c 'gitolite setup -pk {{ main_user_name }}.pub'
  23. chdir=/home/git