From 76a74270c16d916c1bf274ee53d42694874bbf78 Mon Sep 17 00:00:00 2001 From: Tharre Date: Fri, 15 Jun 2018 17:19:24 +0200 Subject: Add cgit configuration for arch linux --- roles/gitolite/tasks/main.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'roles/gitolite/tasks') diff --git a/roles/gitolite/tasks/main.yml b/roles/gitolite/tasks/main.yml index fc05006..e017399 100644 --- a/roles/gitolite/tasks/main.yml +++ b/roles/gitolite/tasks/main.yml @@ -1,19 +1,28 @@ --- +- name: "Load OS specific variables" + include_vars: "{{ item }}" + with_first_found: + - files: + - "{{ ansible_distribution|lower }}.yml" + - "{{ ansible_os_family|lower }}.yml" + - "{{ ansible_system|lower }}.yml" + skip: true + paths: + - ../vars + - name: Add git user user: name: "{{ git_user }}" home: "{{ git_dir }}" system: yes + shell: "/bin/bash" generate_ssh_key: yes state: present -- name: Install gitolite (and git) +- name: Install gitolite package: - name: "{{ item }}" + name: "{{ gitolite_pkg }}" state: present - with_items: - - git-core - - gitolite3 - name: Check if this is a new installation stat: @@ -36,5 +45,6 @@ file: path: "{{ git_dir }}" recurse: yes + mode: "g+rX" owner: "{{ git_user }}" group: "{{ git_group }}" -- cgit v1.2.3-70-g09d2