aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-19 14:13:28 +0100
committerbinary <me@rgoncalves.se>2020-11-19 14:13:28 +0100
commit75b32e60aad2bc2d8d1746be1dbc6d6bf422592e (patch)
treea15f397fbbbf2de579786ed30214411c62dbab35 /roles/git
parent97f201deb22f11acc22dda5368c365701b5caa5f (diff)
downloadinfrastructure-75b32e60aad2bc2d8d1746be1dbc6d6bf422592e.tar.gz
Move roles functionnality in sub-roles
Diffstat (limited to 'roles/git')
-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.