summaryrefslogtreecommitdiff
path: root/roles/gitserver/tasks/main.yaml
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2015-10-26 20:38:25 +0100
committerChristian Franke <nobody@nowhere.ws>2015-10-26 20:38:25 +0100
commitf38450f9f2037244300082f3e4211b790ac87058 (patch)
tree074ffa7d0512e099742641df8065d7b4139a6e99 /roles/gitserver/tasks/main.yaml
parent4e5034f57b54f1a5052fd859d3419002a477e628 (diff)
Assorted changesHEADmaster
- add hooks between webserver and gitserver: git->website and wiki->git work now, git->wiki is still missing, https://ikiwiki.info/tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines/ should contain the right info for that - actually configure repo_service - replace LDAP auth with dummy password auth for now
Diffstat (limited to 'roles/gitserver/tasks/main.yaml')
-rw-r--r--roles/gitserver/tasks/main.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/gitserver/tasks/main.yaml b/roles/gitserver/tasks/main.yaml
index aca95f4..7143c64 100644
--- a/roles/gitserver/tasks/main.yaml
+++ b/roles/gitserver/tasks/main.yaml
@@ -13,6 +13,20 @@
name=git
group=git
home="/var/lib/gitolite"
+ generate_ssh_key=yes
+
+- name: Get Webserver Hostkey
+ slurp: src=/etc/ssh/ssh_host_ecdsa_key.pub
+ register: webserver_host_key
+ delegate_to: "{{groups['webservers'][0]}}"
+
+- name: Put Webserver Hostkey into knownhosts
+ lineinfile: dest=/var/lib/gitolite/.ssh/known_hosts
+ create=yes
+ owner=git
+ group=git
+ mode=0644
+ line="{{groups['webservers'][0]}} {{webserver_host_key.content|b64decode}}"
- name: Make git dir world readable
file:
@@ -32,6 +46,8 @@
- name: Ensure correct permissions on cgitrc.repo_service
file:
name=/etc/cgitrc.repo_service
+ owner=repo_service
+ group=repo_service
mode=0644
- name: Configure git-daemon