diff options
author | Tharre <tharre3@gmail.com> | 2018-06-15 17:19:24 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2018-06-15 17:19:24 +0200 |
commit | 76a74270c16d916c1bf274ee53d42694874bbf78 (patch) | |
tree | 81810a8d6279cad87963e59e7532bf6cd2be5d12 /roles/gitolite/tasks | |
parent | c2e93c2370de9a0948b07e5768c7ac572d299c63 (diff) | |
download | infrastructure-76a74270c16d916c1bf274ee53d42694874bbf78.tar.gz infrastructure-76a74270c16d916c1bf274ee53d42694874bbf78.tar.xz infrastructure-76a74270c16d916c1bf274ee53d42694874bbf78.zip |
Add cgit configuration for arch linux
Diffstat (limited to 'roles/gitolite/tasks')
-rw-r--r-- | roles/gitolite/tasks/main.yml | 20 |
1 files changed, 15 insertions, 5 deletions
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 }}" |