aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_git
diff options
context:
space:
mode:
Diffstat (limited to 'roles/setup_git')
-rw-r--r--roles/setup_git/tasks/main.yml38
-rw-r--r--roles/setup_git/templates/gitweb.service28
-rw-r--r--roles/setup_git/vars/main.yml16
3 files changed, 0 insertions, 82 deletions
diff --git a/roles/setup_git/tasks/main.yml b/roles/setup_git/tasks/main.yml
deleted file mode 100644
index 655e81a..0000000
--- a/roles/setup_git/tasks/main.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# roles ~~ setup_git
-
----
-- name: Check installation of git
- package:
- name: git
- state: present
-
-- name: Add group git
- user:
- name: "{{ git_group }}"
- state: present
-
-- name: Add user git
- user:
- name: "{{ git_user }}"
- comment: "{{ git_user_comment }}"
- group: "{{ git_group }}"
-
-- name: Set up multiple authorized keys
- authorized_key:
- user: "{{ git_user }}"
- state: present
- key: "{{ item }}"
- with_file:
- - "{{ playbook_dir }}/files/pub_ssh/WS-bentonite"
- - "{{ playbook_dir }}/files/pub_ssh/LP-graphite"
-
-- name: Create git directory
- file:
- path: "{{ git_directory_path }}"
- state: directory
- owner: "{{ git_user }}"
- group: "{{ git_group }}"
- mode: 0755
- recurse: True
-
diff --git a/roles/setup_git/templates/gitweb.service b/roles/setup_git/templates/gitweb.service
deleted file mode 100644
index 0b65b49..0000000
--- a/roles/setup_git/templates/gitweb.service
+++ /dev/null
@@ -1,28 +0,0 @@
-
-# =========================================================================== #
-# _ __ _ __
-# __ ______ (_) /_ ____ _(_) /_
-# / / / / __ \/ / __/ / __ `/ / __/
-# / /_/ / / / / / /__ / /_/ / / /_
-# \__,_/_/ /_/_/\__(_) \__, /_/\__/
-# /____/
-#
-# =========================================================================== #
-
-[Unit]
-Description=Gitweb interface for git repositories
-
-[Service]
-Type=forking
-User={{ git_user }}
-Group={{ git_group }}
-WorkingDirectory={{ git_directory_path }}/{{ git_gitweb_default_repository }}
-ExecStart=/usr/bin/git instaweb --port={{ g_port_gitweb_gui }}
-ExecStop=/bin/kill -s HUP $MAINPID
-RuntimeDirectoryMode=0700
-
-Restart=on-failure
-RestartSec=60s
-
-[Install]
-WantedBy=default.target
diff --git a/roles/setup_git/vars/main.yml b/roles/setup_git/vars/main.yml
deleted file mode 100644
index b4f5e64..0000000
--- a/roles/setup_git/vars/main.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# =========================================================================== #
-# _ __
-# _ ______ __________ ____ _(_) /_
-# | | / / __ `/ ___/ ___/ / __ `/ / __/
-# | |/ / /_/ / / (__ ) / /_/ / / /_
-# |___/\__,_/_/ /____(_) \__, /_/\__/
-# /____/
-#
-# =========================================================================== #
-
----
-git_user: git
-git_user_comment: handles git repositories and gitweb service
-git_group: git
-git_directory_path: /srv/git
remember that computers suck.