aboutsummaryrefslogtreecommitdiffstats
path: root/roles/radicale/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/radicale/tasks')
-rw-r--r--roles/radicale/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml
index a39a50c..4350c33 100644
--- a/roles/radicale/tasks/main.yml
+++ b/roles/radicale/tasks/main.yml
@@ -17,6 +17,28 @@
group: radicale
mode: 0700
+- name: initialize git repo
+ become_user: radicale
+ command: git init
+ args:
+ chdir: "{{ radicale.home }}"
+ creates: "{{ radicale.home }}/.git"
+ when: radicale.git
+
+- name: config git user name
+ become_user: radicale
+ command: git config user.name Radicale
+ args:
+ chdir: "{{ radicale.home }}"
+ when: radicale.git
+
+- name: config git user email
+ become_user: radicale
+ command: git config user.email radicale@localhost
+ args:
+ chdir: "{{ radicale.home }}"
+ when: radicale.git
+
- name: generate config file
template:
src: config.j2