aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-07 21:29:21 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:36:51 -0700
commit4d5bd905f339580f106c5f0e93fd081fa2fc7e46 (patch)
tree4a8dcdbf5f431af044255811ceabede4bc2d2f4a
parentFix section-from-path config order (diff)
downloadsite-configs-4d5bd905f339580f106c5f0e93fd081fa2fc7e46.zip
Add public and private git repo dir setup
-rw-r--r--roles/obsd_git/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/obsd_git/tasks/main.yml b/roles/obsd_git/tasks/main.yml
index aeb3bb7..4d467d0 100644
--- a/roles/obsd_git/tasks/main.yml
+++ b/roles/obsd_git/tasks/main.yml
@@ -19,6 +19,22 @@
group: "{{ git_user }}"
mode: "0755"
+- name: Create public git repository directory
+ ansible.builtin.file:
+ path: "{{ git_home }}/public"
+ state: directory
+ owner: "{{ git_user }}"
+ group: "{{ git_user }}"
+ mode: "0755"
+
+- name: Create private git repository directory
+ ansible.builtin.file:
+ path: "{{ git_home }}/private"
+ state: directory
+ owner: "{{ git_user }}"
+ group: "{{ git_user }}"
+ mode: "0700"
+
- name: Silence message of the day for git user
ansible.builtin.file:
path: "{{ git_home }}/.hushlogin"