aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/git/tasks')
-rw-r--r--roles/git/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml
new file mode 100644
index 0000000..74481e4
--- /dev/null
+++ b/roles/git/tasks/main.yml
@@ -0,0 +1,20 @@
+
+# git ~~ roles/git/tasks/main.yml
+# Init git user and settings
+
+---
+
+- name: create git-only directory
+ file:
+ path: /data/git
+ owner: git
+ group: git
+ state: directory
+ mode: 0741
+
+- name: create git user
+ user:
+ name: git
+ group: git
+ shell: "{{ path_gitshell }}"
+
remember that computers suck.