main.yml 553 B

1234567891011121314151617181920212223
  1. ---
  2. # tasks file for ffdo.gitolite
  3. - name: Ensure gitolite user is there
  4. user: name=gitolite createhome=yes system=yes
  5. - name: Ensure gitolite is installed
  6. apt: name=gitolite3 state=present update_cache=yes cache_valid_time=3600
  7. - name: Create gitolite admin key
  8. copy:
  9. content: {{gitolite_admin_key}}
  10. dest: /tmp/git-admin.pub
  11. - name: Install gitolite
  12. shell: su - {{gitolite}} -c "gl-setup /tmp/git-admin.pub"
  13. args:
  14. chdir: /home/gitolite
  15. - name: Remove obsolete key file
  16. file:
  17. dest: /tmp/git-admin.pub
  18. state: absent