Brak opisu
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 783B

12345678910111213141516171819202122232425262728293031
  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. tags:
  10. - dependencies
  11. - name: Copy .gitolite.rc file
  12. copy: src=home_git_.gitolite.rc
  13. dest=/home/git/.gitolite.rc
  14. group=git
  15. owner=git
  16. mode=0644
  17. - name: Copy SSH public key to server
  18. copy: src=gitolite.pub
  19. dest=/home/git/{{ main_user_name }}.pub
  20. group=git
  21. owner=git
  22. mode=0644
  23. - name: Setup gitolite
  24. command: su - git -c 'gitolite setup -pk {{ main_user_name }}.pub'
  25. chdir=/home/git