Blame ansible/roles/pagure-dev/tasks/gitolite.yml
|
Jeremy Cline |
4e3668 |
---
|
|
Jeremy Cline |
4e3668 |
|
|
Jeremy Cline |
4e3668 |
- name: Install gitolite3
|
|
Jeremy Cline |
4e3668 |
dnf: name={{ item }} state=present
|
|
Jeremy Cline |
4e3668 |
with_items:
|
|
Jeremy Cline |
4e3668 |
- gitolite3
|
|
Jeremy Cline |
4e3668 |
|
|
Jeremy Cline |
4e3668 |
- name: Install gitolite.rc to ~/.gitolite.rc
|
|
Jeremy Cline |
4e3668 |
become_user: "{{ ansible_env.SUDO_USER }}"
|
|
Jeremy Cline |
4e3668 |
copy:
|
|
Jeremy Cline |
4e3668 |
src: gitolite3.rc
|
|
Jeremy Cline |
4e3668 |
dest: /home/{{ ansible_env.SUDO_USER }}/.gitolite.rc
|
|
Jeremy Cline |
4e3668 |
|
|
Jeremy Cline |
4e3668 |
- name: Create a key for gitolite
|
|
Jeremy Cline |
4e3668 |
become_user: "{{ ansible_env.SUDO_USER }}"
|
|
Jeremy Cline |
4e3668 |
command: ssh-keygen -f gitolite_rsa -t rsa -N ''
|
|
Jeremy Cline |
4e3668 |
args:
|
|
Jeremy Cline |
4e3668 |
chdir: /home/{{ ansible_env.SUDO_USER }}
|
|
Jeremy Cline |
4e3668 |
creates: /home/{{ ansible_env.SUDO_USER }}/gitolite_rsa.pub
|
|
Jeremy Cline |
4e3668 |
|
|
Jeremy Cline |
4e3668 |
- name: Setup gitolite
|
|
Jeremy Cline |
4e3668 |
become_user: "{{ ansible_env.SUDO_USER }}"
|
|
Jeremy Cline |
4e3668 |
command: gitolite setup -pk gitolite_rsa.pub
|
|
Jeremy Cline |
4e3668 |
args:
|
|
Jeremy Cline |
4e3668 |
chdir: /home/{{ ansible_env.SUDO_USER }}
|